目录:[TOC]linux查看历史输入过的命令直接输入history即可:history其实就是查看文件~/.bash_historyvim ~/.bash_history历史操作命令的清除如果在服务器中干了不好的事情,可以通过history -c命令进行清除,那么其他人登录终端时就无法查看历史操作命令了。但此命令并不会清除保存在文件中的记录,因此需要手动删除~/.bash_profile文件中的记录。 Last modification:November 23, 2022 © Reprint prohibited Support Appreciate the author AliPayWeChat Like V50%看看实力