linux 命令執行歷史記錄history顯示執行時間和用戶

默認狀況下使用history查看時是這樣的顯示,並不能區分執行時間 253 history 254 ifconfig 255 route -n 256 cd /tmp/ 257 ls 258 uname -a 259 history 爲了方便排查問題,須要在每一個執行命令前加上執行時間 修改配置文件:ubuntu liyaoyi@ubuntu:~$ sudo vim /etc/profile
相關文章
相關標籤/搜索