How do I see all users History in Linux?

Nguyễn Tân

New member
How do I see all users History in Linux?
Answer
On Debian-based operating systems, doing tail /var/log/auth. log | grep username should give you a user’s sudo history. I don’t believe there is a way to get a unified command history of a user’s normal + sudo commands. On RHEL-based operating systems, you would need to check /var/log/secure instead of /var/log/auth.
 

Tìm kiếm

Back
Top