Is there a way to find a log of all the commands that have been run by a user on Ubuntu 11.10 Server? I need to find out what my friend ran to install a program.
Is there a way to find a log of all the commands that have been run by a user on Ubuntu 11.10 Server? I need to find out what my friend ran to install a program.
If you use something like bash as a command interpreter, you could check the history.
Follow these instructions (revised from this answer).
Modify the
/etc/bash.bashrc
Append the below line the end of that file
Create a new file
Add the line to the file
Add line to the file
/etc/logrotate.d/rsyslog
.Nearby:
Add this
Restart the rsyslog.