面白そうな記事を見つけたのでwhowatchをインストールしてみました。
whowatch – Monitor Linux Users and Processes in Real Time
https://www.tecmint.com/whowatch-monitor-linux-users-and-processes-in-real-time/
環境
・CentOS Linux release 8.2.2004 (Core)
・Kernel 4.18.0-193.6.3.el8_2.x86_64
- whowatchインストール
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
[root@centos8 ~]# dnf info whowatch Available Packages Name : whowatch Version : 1.8.6 Release : 5.el8 Architecture : x86_64 Size : 54 k Source : whowatch-1.8.6-5.el8.src.rpm Repository : epel Summary : Display information about users currently logged on URL : http://wizard.ae.krakow.pl/~mike/ License : GPLv2 Description : Whowatch is an interactive who-like program that displays : information about the users currently logged on to the machine, : in real time. Besides standard information (login name, tty, : host, user's process), the type of the connection (ie. telnet or : ssh) is shown. You can toggle display between users' command or : idle time. You can watch processes tree, navigate in it and send : INT and KILL signals. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
[root@centos8 ~]# dnf -y install whowatch Last metadata expiration check: 1:33:29 ago on Wed Aug 5 15:02:30 2020. Dependencies resolved. ================================================================================ Package Architecture Version Repository Size ================================================================================ Installing: whowatch x86_64 1.8.6-5.el8 epel 54 k Transaction Summary ================================================================================ Install 1 Package Total download size: 54 k Installed size: 114 k Downloading Packages: whowatch-1.8.6-5.el8.x86_64.rpm 330 kB/s | 54 kB 00:00 -------------------------------------------------------------------------------- Total 47 kB/s | 54 kB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : whowatch-1.8.6-5.el8.x86_64 1/1 Running scriptlet: whowatch-1.8.6-5.el8.x86_64 1/1 Verifying : whowatch-1.8.6-5.el8.x86_64 1/1 Installed products updated. Installed: whowatch-1.8.6-5.el8.x86_64 Complete! |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[root@centos8 ~]# repoquery --list whowatch /usr/bin/whowatch /usr/lib/.build-id /usr/lib/.build-id/76 /usr/lib/.build-id/76/90781507923b28fe811d8ee759bad9aed0f903 /usr/share/doc/whowatch /usr/share/doc/whowatch/AUTHORS /usr/share/doc/whowatch/COPYING /usr/share/doc/whowatch/ChangeLog /usr/share/doc/whowatch/PLUGINS.readme /usr/share/doc/whowatch/README /usr/share/doc/whowatch/TODO /usr/share/man/man1/whowatch.1.gz |
whowatchコマンドを起動するとログインユーザ、プロセス等がリアルタイムで確認できます。