Categories: TutorialsUbuntu

Monitor User Activity With acct Tool on Ubuntu 20.04

Introduction

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.

Installing acct package

Run the apt command to install:

$ sudo apt install acct

Output:

Display
Sponsored
user connection time statistics

The ac command will display from the current wtmp file:

$ ac

Output:

Display statistics of total login time day-wise

Run with -d option:

$ ac -d

Output:

Display total login time of each user

Run with -p option:

Sponsored
$ ac -p

Output:

Show personal user time

For example, I will statistic time of user “ubuntu”:

$ ac ubuntu

Output:

Show day-wise login time of specified user

For example, I will show of user “ubuntu”:

$ ac -d ubuntu

Output:

Conclusion

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.

Ubuntu Server Admin

Recent Posts

Canonical announces 12 year Kubernetes LTS

Canonical’s Kubernetes LTS (Long Term Support) will support FedRAMP compliance and receive at least 12…

18 hours ago

Ubuntu Weekly Newsletter Issue 878

Welcome to the Ubuntu Weekly Newsletter, Issue 878 for the week of February 2 –…

2 days ago

How your feedback shapes the way we support open source software

At Canonical, we firmly believe that delivering an outstanding, customer-centric support experience is impossible without…

2 days ago

How To Install osTicket v1.14 On Ubuntu 20.04

I want to share how to install osTicket v1.14 for Ubuntu 20.04 server. osTicket written…

3 days ago

How To Install WordPress On Ubuntu 20.04

Now I want to share how to install WordPress on ubuntu 20.04 server. WordPress is…

3 days ago

How To Install DNS Server (Bind9) On Ubuntu 20.04

Now I want to share the DNS server installation process on your Ubuntu 20.04 server.…

3 days ago