设定历史缓存数目
更改当前终端会话历史缓存数目:
terminal history [size number-of-lines]
terminal no history [size number-of-lines] 设为default 10.
Example:
router#terminal history size 20
router#terminal no history size 20
更改所有会话历史缓存数目:
history [size number-of-lines]
no history [size number-of-lines]
Example:
router(config)#line con 0
router(config-line)#history size 20
router(config-line)#no history size 20
router(config-line)#end
调用历史命令
调用上一条命令:Press Ctrl-P or the up arrow key
调用下一条命令:Press Ctrl-N or the down arrow key.
列出缓存中的命令:show history
router#show history
en
help
conf t
terminal history size 20
terminal no history size 20
history size 20
conf t
show history
停止历史命令功能
停止当前会话的历史命令功能
Terminal no history
router#terminal no history
停止所有会话的历史命令功能
No history
router(config)#line console 0
router(config-line)#no history
上一篇:请问一历史高考题 先谢谢您了
下一篇:高考有哪几种试卷