Terminal Icon

Copying text into Terminal

You can copy and paste text from documents in Mac OS X into Terminal. You can copy text from within Terminal or from another application.

For example, perhaps you have a text document, HTML page, or PDF file open in Mac OS X with a UNIX statement or script you want to use. You can simply copy the text and paste it into Terminal, just as you would with any Mac OS X program.

Here are some alternate ways to copy text into Terminal:

  • Copy text in another application and then, in Terminal, choose Edit > Paste.

  • Drag selected text into Terminal from any Mac OS X application that supports it.

  • Drag text clippings from the Finder into Terminal.

If the text being pasted includes the Return character at the end of a line, the command is executed immediately.


Related Topics

editing