Friday, June 24, 2011

pstree

pstree - Shows the process tree for the current user.

source:http://kbhaskar.in/10-linux-commands-you-probably-not-know-about/

“pstree” can be used for system administration tasks. Like, if you wish to see which process was started by what program, then this command will be useful.

Syntax: pstree [OPTIONS] [PID] [USER]

Example:

2
3
4
$ pstree # Shows all running processes for the current user
$ pstree 2747 # Shows the process tree for the pid specified

No comments:

Blog Archive