Take the 2-minute tour ×

CentOS log that records everything that is done on the server by a certain user?

share|improve this question
possible duplicate of Record everything on command line centos /fedora/ ubuntu –  Warner Jul 27 '10 at 14:00
Also: serverfault.com/questions/128222/… –  Warner Jul 27 '10 at 14:00
add comment

3 Answers

To answer your question: No. CentOS doesn't really record everything a user does. You could view their .bash_history file as kenny.r suggests, but they can delete this file if they want.

What you are looking for is process accounting, you can get a quick and simply introduction to it here: http://www.cyberciti.biz/tips/howto-log-user-activity-using-process-accounting.html

share|improve this answer
add comment

cat .bash_history

or simply


share|improve this answer
add comment

You can check the .bash_history file in that user's home directory to see the commands he has performed.

share|improve this answer
add comment

Your Answer


