home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


UNIX in a Nutshell: System V Edition

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

history



history

 [

options

]

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

Options

-h

Print history list without event numbers.

-r

Print in reverse order; show oldest commands last.

n

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

Example

To save and execute the last five commands:

history -h 5 > do_it
source do_it


Previous: Reference: hashstat UNIX in a Nutshell: System V Edition Next: Reference: if
Reference: hashstat Book Index Reference: if

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