Display the list of history events. (History syntax is discussed earlier in the section "Command History.")
Note: multiline compound commands such as
foreach ... end
saved in the 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
To save and execute the last five commands:
history -h 5 > do_it