How do you copy and paste text in a non-GUI terminal?

E.g. if I login on an Ubuntu server and type 'test' at the command line (I assume that's a virtual terminal) how do I then copy / paste that? E.g.

$ test

Note, I haven't booted into a GUI environment as yet.

If it helps, I'm using Ubuntu 16.04.01 LTS.

  • No, that's between TTYs. I would just like to get it working initially in a single one. – Snowcrash Oct 6 '16 at 15:52

press ctrl+a to go to the start of the line

press ctrl+k to cut ("kill") the text from the cursor to the end of the line

to paste ("yank"), press ctrl+y

  • Note, that cutting from any other point till end ofbline is fine too, one doesn't have to navigate to the beginning of the line – Sergiy Kolodyazhnyy Oct 6 '16 at 16:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.