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

How to Install nvidia-smi on Ubuntu or Debian Linux

In this article, we will see how to install nvidia-smi on Ubuntu or Debian Linux.…

8 hours ago

How to Install clang tool on Ubuntu or Debian Linux

In this article, we will see how to install clang tool on Ubuntu or Debian…

1 day ago

How to resolve Ubuntu 20.04 Container Signature Errors on Raspberry Pi ARM Devices

When working with Docker containers on Raspberry Pi devices, you might encounter frustrating signature verification…

2 days ago

How to fix DNS Resolution Issues with OpenVPN on Ubuntu 18.04

You’ve recently upgraded to Ubuntu 18.04 and found that your OpenVPN connection no longer resolves…

2 days ago

How to Fix Ubuntu 18.04 System Monitor Launch Issues

Have you ever tried to open System Monitor on your Ubuntu 18.04 system only to…

3 days ago

What is System Hardening? Essential Checklists from OS to Applications

System hardening means locking down a system and reducing its attack surface: removing unnecessary software…

3 days ago