Monitoring User Activity with psacct or acct

Written By
Web Webster
Web Webster
Jan 17, 2010

[ Thanks to Andrew
Weber
for this link. ]

“Monitoring with psacct
An excellent program for monitoring users and applications is
psacct. This program will work in the background of your system
recording what all users are doing on your system as well as the
resources that are being consumed. I originally started using this
program when a client asked for a way to monitor his developers and
what they were doing on the servers that they were working on.
psacct provided an excellent solution which told not only how long
the developers were on the box but what commands they were using
and how much of the resources they were using. Another great
application for this program is to use it to evaluate the resources
that applications are consumed on your server. So for example you
could see the total resources consumed by apache, mysql, etc.
Whether you are a CentOS Administrator or an Ubuntu Server
Administrator or a home user wanting to track activity on your
machine, this is a good program to explore.

“Install Process Accounting

yum install psacct

“on Ubuntu

sudo apt-get install acct
Start Process Accounting

/etc/init.d/psacct start
Starting process accounting:
[ OK ]

“on Ubuntu

sudo service acct start”

Advertisement


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.