+5 votes
305 views
Whowatch: Monitor Linux users and processes in real time

in Linux / Unix by (552k points)
reopened | 305 views

1 Answer

+3 votes
Best answer

1. How to install whowatch on Linux
2. How to use whowatch on Linux

There is no doubt that users and processes are two of the fundamental elements in any operating system ; since the users are the ones that manage and carry out the actions on the whole system with certain permissions while the processes allow the applications, services and the operating system itself to fulfill its usage roles..

There are certain tools that have been developed to allow us to keep track of each of these elements, since it is important that we centrally administer both users and processes to know which users have permissions on the computer, which are active and what processes are being executed there for support or control reasons.

It is for this reason that today TechnoWikis will talk about a tool called whowatch and we will learn how to install and use it on Linux to know in real time everything that happens with users and processes..

What is whowatch?
Whowatch is an interactive utility similar to ncurses through which it will be possible to display information about users who have permissions to log on to the computer and all this in real time. In addition to this, whowatch generates standard information (username, tty, host, user process) and also displays the type of connection used as telnet or ssh.

Some users may be selected and access the process tree either individually or as the tree of all system processes, this tree can be visualized with an additional column in which the owner of each process is displayed, if we use the Process tree mode, SIGINT and SIGKILL signals can be sent to the selected process to execute tasks on it.

Whowatch has no command line options or a configuration file like other utilities, so all actions are performed in real time by pressing the following keys:

Cursor movement
up and down
Allows you to toggle between the user's command line and idle time

i

Refers to the command line activated or deactivated

c

Displays the process tree of the selected user.

Enter

Access all system processes (startup tree)

t

Deploy process owners

or

Send an INT signal to the selected process

+ I Ctrl + I

Send a KILL signal to the selected process

+ K Ctrl + K


1. How to install whowatch on Linux


It will be possible to install whowatch from the default repositories using the package manager based on the Linux distribution used as follows:
Ubuntu / Debian
 sudo apt install whowatch 
CentOS / RHEL
 sudo yum install whowatch 
Fedora
 sudo dnf install whowatch 
image

2. How to use whowatch on Linux

Step 1

Once installed, just run whowatch on the command line, where we will see the user who is logged in and their type of connection. image
Step 2

To see the details of a specific user, we will highlight the user using the up and down arrows to navigate) and then press the d key to display the user information, the result will be as follows:
There we see details like
  • Home Directory
  • User name
  • GID
  • UID
  • Shell route, etc.
image
Step 3

To see the process tree of a particular user, press "Enter" after highlighting that user and we will see the following: image
Step 4

If we want to see all the user's processes in tree format, press the "t" key image
Step 5

Another option is to view the Linux system information using the "s" key. There we see full details about memory usage, disk, swap memory, free space, etc. image

To access the help of the command we will execute the following command:

 man whowatch 
Thus, with whowatch we have the option of accessing all the information in real time of a user and its associated processes for a better management of these.

by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Nov 1, 2019 in Linux / Unix by backtothefuture (552k points) | 328 views
+3 votes
1 answer
+5 votes
1 answer
asked Nov 4, 2019 in Linux / Unix by backtothefuture (552k points) | 244 views
+5 votes
1 answer
asked Jun 23, 2019 in Linux / Unix by backtothefuture (552k points) | 183 views
+5 votes
1 answer
asked Oct 11, 2019 in Linux / Unix by backtothefuture (552k points) | 305 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users