让history显示带时间
第一步
echo 'export HISTTIMEFORMAT="%F %T"' >>/etc/profile
第二步
source /etc/profile
第三步
重新执行history命令,发现显示历史命令使用的时间了
第一步
echo 'export HISTTIMEFORMAT="%F %T"' >>/etc/profile
第二步
source /etc/profile
第三步
重新执行history命令,发现显示历史命令使用的时间了