版权声明: https://blog.csdn.net/PlatoWG/article/details/82660975
1)修改/etc/profile增加以下几行
HISTTIMEFORMAT="%F %T `whoami` " #设置history的显示格式
export HISTTIMEFORMAT
2)source /etc/profile
1)修改/etc/profile增加以下几行
HISTTIMEFORMAT="%F %T `whoami` " #设置history的显示格式
export HISTTIMEFORMAT
2)source /etc/profile