你知道linux系統中如何查看history操作時間?要在linux操作系統中查看history記錄的操作時間我們應該怎么辦呢?現在沒玩就按照下面的步驟一起操作吧。
1,修改/etc/profile文件,在末尾添加:export histtimeformat=”%f %t `whoami` ”
2,或在用戶目錄下,修改文件 .bash_profile,添加export histtimeformat=”%f %t `whoami` ”
退出終端,重新登錄。
例,查看history操作時間:
?
linux系統中如何查看history操作時間?這里分享下具體的實現方法,有需要的朋友可以參考下。
新聞熱點
疑難解答