Sunday, 29 December 2013

Process Management

Hello friends I am Deepak Saini And today we will discus about the Process or how to manage them
Lets Start
Process:-When ever you run a command then a process run.process length is depend on command for how long it would be executed.

Three ways to check process through CLi :- 
1 Ps
2 PS tree
3 top

In GUI mod We are check the process

Application -----> System Monitor -------->Process

Very first process "init"  process in the linux .It PID is 1 .this process called parent process if linux init stop or kill  our system is off.

PID :- PID stands for process id each process gets an uniqe when starts called its PID.
PPID :- [Parent process id ] When any process is initialize by other process so initial process become parent process id,become ppid the initialize process ae called child process.

The conditions of the process

1 R = Runing state 
2 S = Sleeping uninterruptble
3 Ss = Interupible Sleep 
4 sR = Sleeping but can be runn any time when required
5 Z = zombie process (when child process is killed or stope but parent process assumeing its running this state is called zombie.)

Lets start 

1 How to see all current running process.
syntax:- ps

2 How to  see system process 
 syntax:- ps -au 

3 How to see all system or current process 
syntax:- ps -aux

4 How to see the parent or child process like a tree 
  syntax:-  pstree

  
Top is also a command to see the all process of a system .
syntax: top  


In this command autoupdate after few sec .

0 comments:

Post a Comment