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!

Ubuntu Server Admin

Recent Posts

How is Livepatch safeguarded against bad actors?

Canonical Livepatch is a security patching automation tool which supports reboot-less security updates for the…

7 hours ago

Accelerating data science with Apache Spark and GPUs

Apache Spark has always been very well known for distributing computation among multiple nodes using…

7 hours ago

Cut data center energy costs with bare metal automation

Data centers are popping up everywhere. With the rapid growth of AI, cloud services, streaming…

1 day ago

Build the future of *craft: announcing Starcraft Bounties!

Our commitment to building a thriving open source community is stronger than ever. We believe…

1 day ago

NodeJS 18 LTS EOL extended from April 2025 to May 2032 on Ubuntu

The clock was ticking: Node.js 18’s upstream End of Life (EOL) The OpenJS Foundation is…

1 day ago

Native integration now available for Pure Storage and Canonical LXD

June 25th, 2025 – Canonical, the company behind Ubuntu, and Pure Storage, the IT pioneer…

2 days ago