Is there a way I can make a duplicat copy of the .sh_history file as it is created. We have a user who is removing the file and I'm kind of curious to know what they are trying to hide.
If you are root , you can try this:
nohup tail -f user_.sh_history >> your_file &
Then you can see what he does by watch your_file,
But the user can also use ps to see this process,
So use it carefully.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.