显示历史命令之行时间
这里的环境是centos5.8
[python]view plaincopy print? vim~/.bashrc或者~/.bash_profile增加exportHISTTIMEFORMAT="%F%T"
一次会话的话先执行
[python]view plaincopy print? exportHISTTIMEFORMAT="%F%T"
然后使用history 命令就行了
[python]view plaincopy print? #history500|grepget_charge_by_month1002-09-0210:17:34history-500|grepget_charge_by_month1005-09-0210:26:41history500|grepget_charge_by_month
本文出自“orangleliu笔记本”博客,请务必保留此出处/orangleliu/article/details/39002745