Use history
command to print recent input history.
Vitis [1]: ls
vadd/ logs/
Vitis [2]: history
ls
history
By default, input history is printed without the line numbers so that
it can be pasted directly into an editor. Use -n
to
show line numbers.
Vitis [3]: history -n 1
1: ls
By default, the input history from the current session is displayed. Ranges of the history can be indicated using the following syntax:
Vitis [4]: history -n 1-2
1: ls
2: history