Полезная информация

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: hashstatChapter 5
The C Shell
Next: Reference: if


history [options]

Display the list of history events. (History syntax is discussed earlier in "Command History.")



Print history list without event numbers.


Print in reverse order; show oldest commands last.


Display only the last n history commands, instead of the number set by the history shell variable.


To save and execute the last five commands:

history -h 5 > do_it
source do_it

Previous: Reference: hashstatUNIX in a Nutshell: System V EditionNext: Reference: if
Reference: hashstatBook IndexReference: if

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System