xuncode 发表于 2015-11-5 07:13:00

思科路由器&交换机历史命令的设置方法

  设定历史缓存数目
更改当前终端会话历史缓存数目:
terminal history
terminal no history 设为default 10.
Example:
router#terminal history size 20
router#terminal no history size 20

更改所有会话历史缓存数目:
history
no history

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
文章转载至http://bbs.net527.cn无忧网客联盟
无忧网客联盟主站
  无忧linux时代
             版权声明:本文为博主原创文章,未经博主允许不得转载。
页: [1]
查看完整版本: 思科路由器&交换机历史命令的设置方法