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

设定历史缓存数目
更改当前终端会话历史缓存数目:
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

文章转载至http://bbs.net527.cn   无忧网客联盟

无忧网客联盟主站

无忧linux时代

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值