How to trace user activities in linux?

To trace the user login activities in a linux machine, use the following log file

vi /var/log/secure

To trace the commands executed in a linux machine, use the following log file

vi .bash_history

Search