在/etc/profile 中加入 export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
source /etc/profile
可使用last+history判断是谁执行的某条命令
last 历史登录的ip
history 历史操作记录
在/etc/profile 中加入 export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
source /etc/profile
可使用last+history判断是谁执行的某条命令
last 历史登录的ip
history 历史操作记录