O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

history — global

Synopsis

history [number-of-lines]
no history

Configures

History buffer size

Default

10 lines

Description

This command enables the user interface’s history mechanism. A history is a listing of commands that have been executed in the current session. This command is stored in the router’s configuration and applies to all user sessions. number-of-lines is the size of the history buffer and must be in the range of 0-256. If omitted, the buffer size is set to the default value.

Use the no version of this command to disable the history mechanism; use the show history command to view the current history buffer. If you want to activate a history buffer only for your current session, use the command terminal history.

Example

Router# history 255
Router# no history
Router# show history

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required