l
147
history
Syntax:
history [#]
Description:
To show a list of previous commands that you had ever run.
When you enter this command, the CLI would show a list of commands which you
had typed before. The CLI supports up to 256 records. If no argument is typed, the
CLI would list total records up to 256. If optional argument is given, the CLI would
only show the last numbers of records, given by the argument.
Argument:
[#]: show last number of history records. (optional)
Possible value:
[#]: 1, 2, 3, …., 256
Example:
GSW-2496(ip)# history
Command history:
0. trunk
1. exit
2. GSW-2496# trunk
3. GSW-2496(trunk)# exit
4. GSW-2496#
5. ?
6. trunk
7. exit
8. alarm
9. events
10. end
11. ip
12. help
13. ip
14. history
GSW-2496(ip)# history 3
Command history:
13. ip
14. history
15. history 3
GSW-2496(ip)#