Linux: Copy/paste in TTY

I am looking for a way to copy and paste within a TTY. I only have a touchpad, and using it with gpm is a pain. The only possibility I can think of is to use "screen" but even after having remapped Ctrl-A to "`", it is still inconvenient and slow.
Are there any more-comfortable approaches?


If you don't like screen or gpm, your alternatives are quite limited. The other options I can think of are:

  1. Run terminals under X, maybe using a tiling window manager for a minimalist, console-like look.

  2. Run a *BSD instead of Linux, which will let you use sysmouse instead of gpm. I hear it's better, and my limited BSD experiences suggest that it may very well be better, but I don't know if it's better in the area of clipboard support. Sounds like you mostly just don't like your trackpad though, which is probably unfixable without replacement.

  3. Use pipes, named pipes, scratchfiles, etc. For example, most unix editors will let you process selected text via normal command line scripts, which could be setup to save the selection to ~/.clipboard, for instance. Running commands that input text (cat ~/.clipboard) should be even easier.

  4. Use an editor that supports multiple files, and copying/pasting across them. vim does, and emacs does too, I'm sure.


You can use Ctrl+y to paste. To copy, it depends of what you want to copy. If it is on the prompt : Ctrl+u to cut from the beginning, Ctrl+k to cut until the end.


depending on what you are trying to copy and paste... bash does have a vi mode which you can edit your commands in a more like vi way than emacs(bash default) (zsh has a vim mode). putting set -o vi in ~/.bashrc enable's it.