history命令行詳細顯示(包括時間,用戶)

複製這段代碼到 /etc/profile #history modify export HISTTIMEFORMAT="[%Y.%m.%d %H:%M:%S-$USER_IP-$USER]" USER_IP=`who -u am i &>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` if [ -z $USER_IP  ] then   USER_
相關文章
相關標籤/搜索