Linux命令——history查看用戶操做記錄及時間

linux下history命令默認的顯示方式只有命令名稱以下圖html     編輯 /etc/profile 在文件的末尾加上以下代碼linux   export HISTTIMEFORMAT="%F %T `whoami` "     保存後,再執行  source /etc/profile 使配置生效。再執行 history 命令,效果以下圖,顯示出了執行命令的時間和對應用戶。spa   
相關文章
相關標籤/搜索