Monday, May 6, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 32928  / 2 Years ago, mon, january 31, 2022, 8:11:52

How can I log the activity of users for the last 24 hours by terminal in a system? Which command will give me this information?


More From » command-line

 Answers
7

  • ~/.bash_history will show the commands that was used by a user.

  • Install acct : sudo apt-get install acct in addition to login/logout. It provides logs of every single command run by every single user. Below mentioned commands are the features of acct

    • ac print statistics about connect time

    • accton turns accounting on or off

    • last list last logins of users and terms

    • lastcomm list last commands executed

    • sa print accounting statistics

    • dump-acct print accounting file in human-readable form



[#35795] Monday, January 31, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ledeball

Total Points: 434
Total Questions: 121
Total Answers: 120

Location: Antigua and Barbuda
Member since Sat, Apr 24, 2021
3 Years ago
;