Linux - Process Monitoring

Help for Linux users including games servers, networking, routing and firewalls

Moderator: Emmz

Post Reply
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Linux - Process Monitoring

Post by red_ned »

Checking whats running:

There are 2 useful tools for seeing whats running, one is pre installed in most Linux distributions and one can be easily installed.
Top and HTop are very similar programs except HTop is much more graphical (even through putty).

to run top just type:

Code: Select all

top
Image
You can then press "h" for help on commands.
Pressing "u" allows you to select a single process user account.
Pressing "1" allows you to see the processors as individual stats.
Pressing "k" allows you to kill a process, just enter the "PID" number listed and hit enter twice.
Pressing "q" quits the program.

I tend to prefer HTop for no real reason except it shows a slightly more granular view of process and also shows related processing "threads" (other process which either depend on the one process or a process which this one relies on).

to install

Code: Select all

zypper install htop
to run

Code: Select all

htop
Image
HTop uses colour and key presses to select things (like the old midnight commander module which will be descibed later).
The coloured bars show each processor thread use(not just number of cores as some are multi threaded on top of multi cored - like the i7 quad core which has 8 threads), also shows memory and swap file useage.
Keys are listed along the bottom and you can select processes using the arrow keys.
Image
May we all fight to live another day.
User avatar
Smock
0ld Sk00L
0ld Sk00L
Posts: 264
Joined: Sat Feb 23, 2008 9:18 pm

Re: Linux - Process Monitoring

Post by Smock »

ps aux & grep are your friends (or fiends perhaps)
ImageImageImage
Visit my Steam Profile - [url=steam://friends/add/76561197960935400]Add me to your Steam friends[/url]
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Linux - Process Monitoring

Post by red_ned »

100% of gui tools can be done by command line but some of them are dangerous for beginners

nice to have another linux bod around tho, you can do some grep stuff for the boys and girls but i never used aux yet so start with that so i can try it out
Image
May we all fight to live another day.
User avatar
Smock
0ld Sk00L
0ld Sk00L
Posts: 264
Joined: Sat Feb 23, 2008 9:18 pm

Re: Linux - Process Monitoring

Post by Smock »

I don't use a gui anymore :blackeye:
ImageImageImage
Visit my Steam Profile - [url=steam://friends/add/76561197960935400]Add me to your Steam friends[/url]
User avatar
red_ned
CiC-GoD
CiC-GoD
Posts: 4757
Joined: Sat Nov 24, 2007 2:23 am
DayZ Name: Hobn0b
Contact:

Re: Linux - Process Monitoring

Post by red_ned »

i mix and match depending on what i am doing
Image
May we all fight to live another day.
Post Reply