使用 Ctrl+R 搜索历史

2016-03-23  本文已影响16人  咆哮红颜

当找到命令后,通常再按回车键就可以执行该命令。

如果想对找到的命令进行调整后再执行,则可以按一下左或右方向键。

Press Ctrl+R from the command prompt, which will display the reverse-i-search prompt

(reverse-i-search)`red‘: cat /etc/redhat-release

[Note: Press enter when you see your command, which will execute the command from the history]

上一篇 下一篇

猜你喜欢

热点阅读