Skip to content

commands

Log shell commands to syslog

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