history 是历史查看的常用命令,下面是总结的一些工作上常用的使用技巧:
1.history: 查看当前系统命令的历史纪录,默认1000条
2.echo $HISTSIZE :显示默认条数

3.history -c:清空历史纪录,一般处于安全考虑
4.!$ : 上一条命令的最后一个参数

5.类似于 !$ 的快捷键 Esc + .
6.!! : 执行上一条命令

history 是历史查看的常用命令,下面是总结的一些工作上常用的使用技巧:
1.history: 查看当前系统命令的历史纪录,默认1000条
2.echo $HISTSIZE :显示默认条数
3.history -c:清空历史纪录,一般处于安全考虑
4.!$ : 上一条命令的最后一个参数
5.类似于 !$ 的快捷键 Esc + .
6.!! : 执行上一条命令
本文标题:linux命令之--history
本文链接:https://www.haomeiwen.com/subject/btxqgttx.html
网友评论