Linux開啓同步history記錄到messages

在服務器/etc/bashrc中開啓history同步記錄到messages中 bash export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; });logger"[euid=$(whoami)]":$(who am i):[`pwd`]"$msg";  }'服務器 source/etc/bashrc            
相關文章
相關標籤/搜索