1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > [Linux]history 显示命令执行的时间

[Linux]history 显示命令执行的时间

时间:2018-09-25 23:20:38

相关推荐

[Linux]history 显示命令执行的时间

显示历史命令之行时间

这里的环境是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

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。