Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 222 Bytes

002-history.rst

File metadata and controls

10 lines (6 loc) · 222 Bytes

history

查看当前系统下的历史命令。

为history命令添加命令执行的日期

grep "HISTTIMEFORMAT=" /etc/profile||echo 'export HISTTIMEFORMAT="[%F %T] "' >> /etc/profile