Created
April 12, 2022 01:30
-
-
Save rizkylab/8ab4fe30c8539c835f6e9f90f83a4f3f to your computer and use it in GitHub Desktop.
bash history log all commands to syslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROMPT_COMMAND='history -a >(tee -a ~/.bash_history | logger -t "$USER[$$] $SSH_CONNECTION")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment