linux中history命令的简单使用

用户的历史命令都会被保存到用户家目录的“.bash_history”文件中。由于以“.”开头的文件都是隐藏文件,因此咱们能够经过”ll –a  ~/.bash_history” 命令看到该文件bash 咱们能够经过“cat  ~./bash_history”查看该文件中的内容。也能够直接经过history命令直接查看spa 清空history的命令为blog history -cim
相关文章
相关标签/搜索