The whowatch is a tool for monitoring users and processes via command line. It shows the currently logged in users and information about them such as login name, home directory, UUID, GID, and other. This tool enables to choose a particular user and view his processes tree.
This tutorial explains how to install whowatch on Ubuntu 20.04.
Run the following command to update the package lists:
sudo apt update
sudo apt install -y whowatch
As we can see, the
adminer user is currently logged in via SSH.
We can also view information of a particular user. With up and down arrows you can go through list. In order to see information about user, highlight the user and press
To quit details window, press
d key once again.
Highlight the user and press
Enter key to view user's processes tree.
To return to user list, press
Enter key once again.
CTRL+C to quit the whowatch.
If you decided to completely remove whowatch, execute the following command:
sudo apt purge --autoremove -y whowatch