设定历史缓存数目
更改当前终端会话历史缓存数目:
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
思科路由器&交换机历史命令的设置方法
最新推荐文章于 2023-06-17 23:06:01 发布
本文介绍如何配置路由器中终端会话及所有会话的历史命令缓存数目,并提供了具体的配置命令示例,包括调用历史命令的方法及如何停止历史命令功能。
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Qwen-Image-Edit-2509
图片编辑
Qwen
Qwen-Image-Edit-2509 是阿里巴巴通义千问团队于2025年9月发布的最新图像编辑AI模型,主要支持多图编辑,包括“人物+人物”、“人物+商品”等组合玩法
5311

被折叠的 条评论
为什么被折叠?



