思科路由器 查看历史命令怎么看


设定历史缓存数目

更改当前终端会话历史缓存数目:

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

本文标签: is in
版权声明:本文内容来源网络,本站仅提供信息存储空间服务,不承担相关法律责任,如发现涉嫌抄袭侵权的内容, 请联系我们删除。