acct is an open-source application that allows tracking user’s activities on the system. It works in the background and monitors all user activity on the system and the resources used. It is often used at companies and must work continuously on servers. It is very useful because it provides resources used by Apache, MySQL, FTP,…
Now we’re gonna introduce you to monitoring user activity with the acct tool on Ubuntu 20.04. Hope you understand.
Run the apt command to install:
$ sudo apt install acct
Output:
The ac command will display from the current wtmp file:
$ ac
Output:
Run with -d option:
$ ac -d
Output:
Run with -p option:
$ ac -p
Output:
For example, I will statistic time of user “ubuntu”:
$ ac ubuntu
Output:
For example, I will show of user “ubuntu”:
$ ac -d ubuntu
Output:
We just introduced you to how to monitor user activity with the acct tool on Ubuntu 20.04.
Thank you for reading!
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.
From March 2-5 in Barcelona, Canonical will present a working wildlife conservation platform that combines…
2025: From RISC-V enablement to real execution 2025 was the year that RISC-V readiness gave…
You’ve almost certainly seen them… In the forest, rummaging through a dumpster, in poorly aging…
Jono Bacon, Stuart Langridge and myself present Bad Voltage, in which Bryan is sadly unavoidably…
The polls are closed and the official results are in. You can view the detailed…
coRAN Labs and Canonical at MWC Barcelona 2026 At MWC Barcelona 2026, coRAN Labs and…