4.5 Command HistoryThe Korn shell lets you display or modify previous commands. This is similar to the C shell's history mechanism. Commands in the history list can be modified using:
4.5.1 Line-edit ModeLine-edit mode lets you emulate many features of the vi or emacs editor. The history list is treated like a file. When the editor is invoked, you type editing keystrokes to move to the command line you want to execute. You can also change the line before executing it. When you're ready to issue the command, press RETURN. Line-edit mode can be started in several ways. For example, these are equivalent:
$ Note that vi starts in input mode; to type a vi command, press ESCAPE first. 4.5.1.1 Common Editing Keystrokes
4.5.2 The fc CommandUse fc -l to list history commands and fc -e to edit them. See the entry under built-in commands for more information. 4.5.2.1 Examples
$ |
|