export PROMPT_COMMAND='{ msg=$(history 1 | { read x y ; echo $y ;});logger "[euid=$(whoami)]":$(who am i):[`pwd`]" $msg";}'
添加上面一行到 /etc/bashrc
生效:关闭当前终端并打开一个新的
export PROMPT_COMMAND='{ msg=$(history 1 | { read x y ; echo $y ;});logger "[euid=$(whoami)]":$(who am i):[`pwd`]" $msg";}'
添加上面一行到 /etc/bashrc
生效:关闭当前终端并打开一个新的