4.5 Command HistoryThe Korn shell lets you display or modify previous commands. Commands in the history list can be modified using:
4.5.1 Line-Edit ModeLine-edit mode emulates many features of the vi and emacs editors. 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 the Return key. 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 the Escape key first. 4.5.1.1 Common editing keystrokes
4.5.2 The fc and hist Commands
Use In ksh93
, the fc
command has been renamed hist
, and 4.5.2.1 Examples$ |
|