默认的history是没时间戳,通过设置变量可能添加时间戳 #export HISTTIMEFORMAT="%F %T `whoami` " # history 553 2015-06-04 10:05:53 root cd 554 2015-06-……