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            
相关文章
相关标签/搜索