• 确博日记
  • 工作时间:09:30 pm-06:24 pm

Centos7清空历史命令的方法(清空history)

centos系统默认会储存用户之前登录执行过的命令,如果想清空可以进行以下操作。

登录SSH输入:history -c && > ~/.bash_history  然后执行即可清空history记录。

  • 在线列表
    1589813