whowatch – Monitor Linux Users and Processes in Real Time

[‘

n

whowatch is a simple, easy-to-use interactive who-like command line program for monitoring processes and users on a Linux system. It shows who is logged on to your system and what they are doing, in a similar fashion as the w command in real-time.

n

It shows total number of users on the system and number of users per connection type (local, telnet, ssh and others). whowatch also shows system uptime and displays information such as user’s login name, tty, host, processes as well as the type of the connection.

n

In addition, you can select a particular user and view their processes tree. In the process tree mode, you can send the SIGINT and SIGKILL signals to selected process in a fun way.

n

In this brief article, we will explain how to install and use whowatch on Linux systems to monitor users and processes in real time in a machine.

n

How to Install whowatch in Linux

n

The program whowatch can be easily installed from the default repositories using package manager on your Linux distribution as shown.

n

$ sudo apt install whowatch  [On Ubuntu/Debian]rn$ sudo yum install whowatch  [On CentOs/RHEL]rn$ sudo dng install whowatch  [On Fedora 22+]rn

n

Once installed, you can simply type the whowatch in the command line, you will see the following screen.

n

$ whowatchrn

n

Monitor Logged in Users
Monitor Logged in Users

n

You can view a particular user’s details, simply highlight the user (use the Up and Down arrows to navigate). Then press d key to list the user information as shown in this screenshot.

n

Check User Information in Linux
Check User Information in Linux

n

To view a users process tree, press Enter after highlighting that particular user.

n

Monitor User Process
Monitor User Process

n

To view all Linux user processes tree, press t.

n

Monitor Linux User Processes
Monitor Linux User Processes

n

You can also view Linux system information by pressing s key.

n

Check Linux System Information
Check Linux System Information

n

For more information, see the whowatch man page as shown.

n

$ man whowatchrn

n

You will also find these related articles useful:

n

    n

  1. How to Monitor Linux Commands Executed by System Users in Real-time
  2. n

  3. How to Monitor User Activity with psacct or acct Tools
  4. n

n

That’s all! whowatch is a simple, easy-to-use interactive command line utility for monitoring processes and users on a Linux system. In this brief guide, we have explained how to install and use whowatch. Use the feedback form below to ask any questions or share your thoughts about this utility.

n

‘]