{"id":12625,"date":"2019-03-28T04:27:09","date_gmt":"2019-03-28T04:27:09","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12625"},"modified":"2019-03-28T04:27:09","modified_gmt":"2019-03-28T04:27:09","slug":"whowatch-monitor-linux-users-and-processes-in-real-time","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/whowatch-monitor-linux-users-and-processes-in-real-time\/","title":{"rendered":"whowatch \u2013 Monitor Linux Users and Processes in Real Time"},"content":{"rendered":"<p><strong>whowatch<\/strong>\u00a0is 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\u00a0<strong>w command<\/strong>\u00a0in real-time.<\/p>\n<p>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\u2019s login name, tty, host, processes as well as the type of the connection.<\/p>\n<p>In addition, you can select a particular user and view their processes tree. In the process tree mode, you can send the\u00a0<strong>SIGINT<\/strong>\u00a0and\u00a0<strong>SIGKILL<\/strong>\u00a0signals to selected process in a fun way.<\/p>\n<p>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.<\/p>\n<h3>How to Install whowatch in Linux<\/h3>\n<p>The program\u00a0<strong>whowatch<\/strong>\u00a0can be easily installed from the default repositories using package manager on your Linux distribution as shown.<\/p>\n<pre>$ sudo apt install whowatch  [On <strong>Ubuntu\/Debian<\/strong>]\r\n$ sudo yum install whowatch  [On <strong>CentOs\/RHEL<\/strong>]\r\n$ sudo dng install whowatch  [On <strong>Fedora 22+<\/strong>]\r\n<\/pre>\n<p>Once installed, you can simply type the\u00a0<strong>whowatch<\/strong>\u00a0in the command line, you will see the following screen.<\/p>\n<pre>$ whowatch\r\n<\/pre>\n<div id=\"attachment_30085\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-Logged-in-Users.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30085\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-Logged-in-Users.png\" alt=\"Monitor Logged in Users\" width=\"692\" height=\"287\" aria-describedby=\"caption-attachment-30085\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30085\" class=\"wp-caption-text\">Monitor Logged in Users<\/p>\n<\/div>\n<p>You can view a particular user\u2019s details, simply highlight the user (use the\u00a0<strong>Up<\/strong>\u00a0and\u00a0<strong>Down<\/strong>\u00a0arrows to navigate). Then press\u00a0<code>d<\/code>\u00a0key to list the user information as shown in this screenshot.<\/p>\n<div id=\"attachment_30086\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-User-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30086\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-User-Information.png\" alt=\"Check User Information in Linux\" width=\"692\" height=\"287\" aria-describedby=\"caption-attachment-30086\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30086\" class=\"wp-caption-text\">Check User Information in Linux<\/p>\n<\/div>\n<p>To view a users process tree, press\u00a0<strong>Enter<\/strong>\u00a0after highlighting that particular user.<\/p>\n<div id=\"attachment_30087\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-User-Process.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30087\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-User-Process.png\" alt=\"Monitor User Process\" width=\"692\" height=\"287\" aria-describedby=\"caption-attachment-30087\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30087\" class=\"wp-caption-text\">Monitor User Process<\/p>\n<\/div>\n<p>To view all Linux user processes tree, press\u00a0<code>t<\/code>.<\/p>\n<div id=\"attachment_30088\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-Linux-User-Processes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30088\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Monitor-Linux-User-Processes.png\" alt=\"Monitor Linux User Processes\" width=\"692\" height=\"515\" aria-describedby=\"caption-attachment-30088\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30088\" class=\"wp-caption-text\">Monitor Linux User Processes<\/p>\n<\/div>\n<p>You can also view Linux system information by pressing\u00a0<code>s<\/code>\u00a0key.<\/p>\n<div id=\"attachment_30089\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Check-Linux-System-Information.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-30089\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/07\/Check-Linux-System-Information.png\" alt=\"Check Linux System Information\" width=\"692\" height=\"287\" aria-describedby=\"caption-attachment-30089\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-30089\" class=\"wp-caption-text\">Check Linux System Information<\/p>\n<\/div>\n<p>For more information, see the\u00a0<strong>whowatch<\/strong>\u00a0man page as shown.<\/p>\n<pre>$ man whowatch\r\n<\/pre>\n<p>You will also find these related articles useful:<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/monitor-linux-commands-executed-by-system-users-in-real-time\/\" target=\"_blank\" rel=\"noopener\">How to Monitor Linux Commands Executed by System Users in Real-time<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/how-to-monitor-user-activity-with-psacct-or-acct-tools\/\" target=\"_blank\" rel=\"noopener\">How to Monitor User Activity with psacct or acct Tools<\/a><\/li>\n<\/ol>\n<p>That\u2019s all!\u00a0<strong>whowatch<\/strong>\u00a0is 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.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/whowatch-monitor-linux-users-and-processes-in-real-time\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>whowatch\u00a0is 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\u00a0w command\u00a0in real-time. It shows total number of users on the system and number of users per connection &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/whowatch-monitor-linux-users-and-processes-in-real-time\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;whowatch \u2013 Monitor Linux Users and Processes in Real Time&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12625","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12625"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12625\/revisions"}],"predecessor-version":[{"id":12626,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12625\/revisions\/12626"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}