How to Copy and Paste Text into the Linux Terminal

By Lori Kaufman on November 27th, 2014

00_lead_image_copy_paste_text_in_terminal

When you enter a long command into the Terminal window that you found on the web or in a document, you can save yourself some time by easily copying and pasting the command at the prompt.

To begin, highlight the text of the command you want on the webpage or in the document you found. Press Ctrl + C to copy the text.

01_copying_text_from_web_page

Press Ctrl + Alt + T to open a Terminal window, if one is not already open. Right-click at the prompt and select “Paste” from the popup menu.

02_selecting_paste_in_terminal

The text you copied is pasted at the prompt. Press Enter to execute the command.

03_text_pasted

The command is executed like you typed in yourself.

04_command_executed

You can also copy text from the Terminal window to paste into other programs. Simply highlight the text, right-click on it, and select “Copy” from the popup menu. You can paste this text into a text editor, word processor, etc.

05_copying_text_from_terminal

When pasting a copied command into the Terminal window, you can use the arrow keys to navigate through the command and use the backspace key to delete text and retype it, if desired. This is useful if you want to copy a long command that has placeholders for certain parts of the command. You can easily change those to customize the command to your needs.

Lori Kaufman is a writer who likes to write geeky how-to articles to help make people's lives easier through the use of technology. She loves watching and reading mysteries and is an avid Doctor Who fan.

  • Published 11/27/14
More Articles You Might Like

Enter Your Email Here to Get Access for Free:

Go check your email!