View

Log shell commands to syslog

  1. export PROMPT_COMMAND=“${PROMPT_COMMAND:+$PROMPT_COMMAND ; }”‘echo $$ $USER “$(history 1)”|logger -p user.alert -t bash_history’
  2. readonly PROMPT_COMMAND

You may also like