Celestica Documentation Portal

Find your product documents here

show history

Displays the current session's command history.

Syntaxshow history [<lines>]
Command ModeEXEC
Parameterslines – Number of lines to be displayed from recent history, range 1 to 300.
UsageNone
Supported Releases1.0.0 or later
Click CommandNone
Example
sonic# show history
Index  Timestamp             Command
-----  ---------             -------
1      14-Jul-2023 05:20:27  configure terminal
2      14-Jul-2023 05:20:33  interface Vlan 10
3      14-Jul-2023 05:20:37  show config
4      14-Jul-2023 05:20:49  no interface Vlan 10
5      14-Jul-2023 05:20:59  do show vlan 10
6      14-Jul-2023 05:21:03  end
7      14-Jul-2023 05:21:06  show history
sonic# show history 4
Index  Timestamp             Command
-----  ---------             -------
5      14-Jul-2023 05:20:59  do show vlan 10
6      14-Jul-2023 05:21:03  end
7      14-Jul-2023 05:21:06  show history
8      14-Jul-2023 05:21:12  show history 4
sonic#