Linux history 相关 发表于 2017-07-29 | 分类于 Linux-Linux常用技巧 让history命令保存时间在.bash_profile中加入: 1export HISTTIMEFORMAT="%d/%m/%y %T " 然后保存退出,运行: 1$ source ~/.bash_profile 让history实时保存在.bash_profile中加入: 12shopt -s histappendPROMPT_COMMAND="history -a;$PROMPT_COMMAND" 然后保存退出,运行: 1source .bash_profile 坚持技术分享,您的支持将鼓励我继续创作! 赏 微信打赏 支付宝打赏