Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

WHen i do ps -A

Then i get the list of all processes , Is there any tutorial which explains which process is doing what

share|improve this question
add comment

2 Answers 2

Usually you'll get an idea what each process does in its man page. Just run man $processname (e. g. man init) to open the corresponding man page.

Processes shown within square brackets in the output of ps -ef (e. g. [kthreadd]) are kernel process for which you won't find a man page.

share|improve this answer
    
Is there any place on web where i can get kernel process info –  John Jun 28 '10 at 6:39
3  
The kernel processes are usually described in the documentation of the respective kernel subsystem, see git.kernel.org/?p=linux/kernel/git/stable/… –  joschi Jun 28 '10 at 6:55
add comment

ps -A x will list the processes as well as the command line arguments used (which is really useful). netstat -tup will list all tcp and udp connections as well as the process driving those connections. Run as root if some process ids are blanked out. lsof -p pid will list all the open handles currently owned by the process associated with pid. This information usually encapsulates files and sockets, very useful for figuring if a process has got a lock on a file. grep, awk, sort and uniq are great tools for ordering and filtering the data generated by the ps, netstat and lsof commands.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.