O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Copying and Pasting Text

Copying and pasting text between terminal windows is a common X11 operation and involves using your mouse to select, drag, and then paste selected portions of text. Your keyboard can also play a part in these operations, especially for selecting large areas of text.

Copying and pasting text is handy for quickly copying complex command lines for later use in shell scripts, for duplicating text blocks or for moving chunks of text from a program's output in a terminal window into a text editor window.

Copying and pasting words, lines, and blocks

  1. To copy a word from text in a terminal window, double-click the word. Move to another window and press the middle mouse button (or both left and right mouse buttons simultaneously ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required