history
[options]Display the list of history events. (History syntax is discussed earlier in the section "Command History.")
Note: multiline compound commands such as foreach ... end
are not saved in the history list.
-h
Print history list without event numbers.
-r
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.