跳到主要内容

history 命令

该命令提供以前发出的命令的列表。

使用 history 命令可显示带索引的历史记录列表,提供最近发出的八个命令。然后,可使用索引作为快捷方式(前面带有 !),以重新发出此历史记录列表中的命令。

示例:
system> history
0 ifconfig eth0
1 readlog
2 readlog
3 readlog
4 history
system> ifconfig eth0
-state enabled
-c dthens
-i 192.168.70.125
HISTORY-g 0.0.0.0
-s 255.255.255.0
-n XCCA00096B9E003A
-r auto
-d auto
-m 1500
-b 00:09:6B:9E:00:3A
-l 00:00:00:00:00:00
system>