让ubuntu的history命令显示时间及用户 Posted on 2015年9月15日, updated on 2015年9月15日 by allenmo PHP vi /etc/profile 在最后加入一行: export HISTTIMEFORMAT="%F %T `whoami` " 退出,重登,ok 1234 vi /etc/profile在最后加入一行:export HISTTIMEFORMAT="%F %T `whoami` "退出,重登,ok Post Views: 2,929