Logging Linux Commands for all users

To log commands executed by users on Linux shell, edit file

Add

Create file

Add

Restart rsyslog

Now log off and login, you will be able to see all commends executed by users on bash shell in file /var/log/commands.log

Log rotating

edit

Find

Add below

Add a Comment

Your email address will not be published. Required fields are marked *