Command History

A session maintains a non-persistent command history of previously entered command lines. The history can be up to 32 lines long. Once full, a new line will push the oldest entry out.

The number of lines to keep in the history for the current session is configurable between 0 and 32, where 0 disables the history altogether. my-device# terminal history size 32 The current value is displayed as part of the output from show terminal: my-device# show terminal Line is con 0.

  • You are at this line now.

    Alive from Console.

    Default privileged level is 2.

    Command line editing is enabled

    Display EXEC banner is enabled.

    Display Day banner is enabled.

    Terminal width is 80.

    length is 24.

    history size is 32.

    exec-timeout is 10 min 0 second.

    Current session privilege is 15.

    Elapsed time is 0 day 0 hour 6 min 20 sec.

    Idle time is 0 day 0 hour 0 min 0 sec.

    It is possible to list the history:

    my-device# show history

    show running-config

    copy running-config startup-config

    dir

    show history

    my-device#

    The list begins with the oldest entry at top.

Last updated