Steps to Install psacct or acct Monitoring Tool on Ubuntu 20.04 LTS

Acct or Psacct is a free & open source monitoring user activity tool for linux system. can monitor the user activity & getting the information about the user performance. It provides the information about last commands executed by users, user logins/logouts details in hours by day-wise, system activity information,& individuals user information.

There are few steps to install acct on ubuntu:

Step 1: Update the System.

apt-get update

Step 2: Install the psacct or acct on system.

apt-get install acct

  • Check the acct version.

ac --version

Step 3: acct Syntax & Examples:

  • To shows total statistics of connect time in hours based on the user logins/logouts.

ac

  • Here is the command output.

  • To shows total users login time in hours by day-wise.

ac -d

  • To shows login time of each user in hours.

ac -p

  • Here is the command output.

  • To shows login statistics time of specific user in hours.

ac user-name
ac ubuntu

  • To shows the day-wise login time of specific user in hours.

ac -d user-name

  • To display all system activity information.

sa

  • Here is the command output.

  • To views the information of specific user.

sa -u

  • Here is the command output.

  • To display number of processes and CPU minutes.

sa -m

  • Here is the command output.

  • To lists the highest percentage of users.

sa -c

  • Here is the command output.

  • To list the last commands executed by users.

lastcomm

  • Here is the command output.

  • To list the particular usage of a command by users.

lastcomm ac

  • Here is the command output.

Leave a Reply

Your email address will not be published. Required fields are marked *