美文网首页
linux history格式定制

linux history格式定制

作者: 进击的胖达 | 来源:发表于2018-01-03 15:19 被阅读9次

将以下内容写入profile或者新建文件,source生效即可

export HISTFILE=$HOME/.bash_history
export HISTSIZE=1200
export HISTFILESIZE=1200
export HISTCONTROL=ignoredups
export HISTTIMEFORMAT="`whoami` %F %T "
shopt -s histappend
typeset -r HISTTIMEFORMAT

相关文章

网友评论

      本文标题:linux history格式定制

      本文链接:https://www.haomeiwen.com/subject/raihnxtx.html