Dave's Brain

Browse - computer tips - linux monitor processes

Date: 2008jan11
OS: Linux
Level: Beginner

Q.  What are the Linux commands to monitor what processes are running?

A.  You can use:

	ps	- report a snapshot of the current processes.
	pstree	- display a tree of processes
	top	- display updated view of busiest processes
	htop	- interactive process viewer (uses ncurses)
	gtop	- Gnome top

   See man pages for more info.

   The /proc directiory has a subdirectory for each running process.
   So search for numbered directories shows whats running:

	ls /proc | egrep '[0-9]'

   My favorite way of invoking ps:

	ps -eo user,pid,%cpu,start,args --forest
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.
Advertisements: