Name
terminal history — command
Synopsis
terminal history [size number]
terminal no historyConfigures
Terminal history for the current session
Default
Enabled; 10 lines
Description
This command enables history logging for the current session; it can
also be used to change the size of the history buffer for that
session. To enable history logging, use the terminal history command, which takes the last-used size as the
buffer size. To change the size of the current history buffer, use
the size keyword followed by the
number of lines you want to save in the
buffer. The buffer’s size can be from 1 to 256 lines.
Use Ctrl-P or the up arrow to go up in the history list; use Ctrl-N
or the down arrow to return to more recent commands in the list. To
see the entire list, use show history.
Example
This example changes the history size to 100:
router# terminal history size 100
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access