[Linux] Linux/Mac OS history命令 添加時間,用戶,ip

history命令能夠查看指令的歷史記錄。history能夠加上參數,好比時間、用戶和IP等等。web echo 'export HISTTIMEFORMAT="%F %T `whoami` "' >> /etc/profile 執行source生效:bash source /etc/profile
相關文章
相關標籤/搜索