How did they manage to drive a Unix computer before mice and copy & paste?

Copy-paste is older than the mouse. The first unix editor, ed, had the t command to copy a bunch of lines to a different location. In vi, there are various commands to cut, yank and paste text. To copy text between files, you would save the text to copy in a temporary file and import that temporary file in the target document, e.g. with w and r in ed (:w and :r in vi). To include the output of a command in a file, you would redirect its output (mycommand >file or mycommand >>file) and import that file into your document; vi introduced the ! command and friends to directly insert the output without requiring a temporary file.

Loading a man page into Vim or Emacs and copy-pasting from it is routine for Vim/Emacs users. Web browsers didn't exist until Unix was old enough to drink, but the same principle applies anywhere: the clipboard is older than window environments. What window environments brought was cross-application copy-paste, which could be done with only a little more effort through files.


The simple answer is, "they didn't copy & paste." Not in the way you understand it, anyway.

The very earliest Unix systems used teletypes or dumb terminals for interactive use. These devices didn't have the powerful terminal command sets that made later innovations (!) like vi possible. (Yes, once upon a time, vi was high technology.) You therefore had no way to visually mark text to be copied or cut.

Lacking smart terminals, early Unix systems offered a line editor called ed. The closest thing you have to cut-and-paste with ed is the t command, with which you can specify lines by number to be transferred (copied) to another location in the file.

Punched cards and paper tape were still important I/O media at this time. One way to "edit" a paper tape is to filter its data through something like sed, directly from a paper tape reader as it is reading the data in. Today sed gets used for other things, but it was much more important in the early days of Unix.


No, not everyone is the same. Not everybody copies code off the internet to run on their machine. Some folks actually write code and sometimes post it to the web.

You typically don't have to leave a text editor either to read data in from some other file (such as a man page) or to send data out either for execution or to a file.

Also, I frequently do cross-application copy-paste in a terminal without using the mouse even today. GNU-screen and tmux support using the keyboard to select things from the screen into a clipboard and paste them either to the shell or to other programs in other terminal windows, or keep it for later.