用于查看历史命令history -c:清除历史命令1.history:查看历史命令history 清空 -chistory 20!166 执行历史记录中第166条命令!da 执行最近一条以da开头的命令history -chistory >history.txt.bash_history 用户退出后才会写入,文件名前.表示隐藏文件