What is the easiest way to log all the commands ran in the all different shells (bash, zsh...) by a certain user to a file, syslog or somewhere else?
Asked
Active
Viewed 186 times
1
-
Well bash uses .bash_history in each users home folder to store commands executed for a start. – Raman Sailopal Mar 21 '18 at 15:10
-
This thread may have something helpful: https://unix.stackexchange.com/questions/206159/how-to-track-log-commands-executed-on-a-shell – Andy Dalton Mar 21 '18 at 15:28