Centos系统如何清除历史执行命令
发布时间:2023-9-6 10:05:09 来源: 纵横云
Centos系统如何清除历史执行命令
1.输入history命令,查看历史执行命令。

2.使用history -d 需要删除的行数用来删除指定行数的历史命令 ,我这边以删除18行为例子,删除后在使用history查看18行是已经被删除了。

3.使用history -c可以清空所以历史执行命令。

本文来源:
https://www.zonghengcloud.com/article/12250.html
[复制链接]
链接已复制