[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Displaying CLI Command History

To display a list of recent commands that you issued, use the show cli history command:

user@host> show cli history
03-03 01:00:50 -- show cli history
03-03 01:01:12 -- show interfaces terse
03-03 01:01:22 -- show interfaces lo0
03-03 01:01:44 -- show bgp next-hop-database
03-03 01:01:51 -- show cli history

By default, this command displays the last 100 commands issued in the CLI. If you specify a number with the command, it displays that number of recent commands. For example:

user@host>show cli history 3
01:01:44 -- show bgp next-hop-database
01:01:51 -- show cli history
01:02:51 -- show cli history 3

[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]