Flush shell command to .bash_history

来源:互联网 发布:ubuntu默认字体设置 编辑:程序博客网 时间:2024/06/06 10:38

  The command in current shell will not save to .bash_history unless you exit the shell. But when you type "history -w", you will flush it in .bash_history.

  To earse the history, you should type"history -c", the command will clean all records in current shell.