June 2004
Intermediate to advanced
1056 pages
39h 58m
English
history
history [options]Display the list of history events. (History syntax is discussed in Section 21.6.)
Clear history list.
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.
file
Load series of pushd and popd commands from
file in order to re-create a saved stack.
file
Merge the current directory stack and the stack saved in
file. Save both, sorted by time, in
file as a series of pushd and popd
commands.
file
Print to file a series of pushd and popd
commands that can be invoked to replicate the stack.
Print with timestamp.
To save and execute the last five commands:
history -h 5 > do_itsource do_it
Read now
Unlock full access