In Linux server, like some other OS it’s become difficult when your’re looking for a running process which utilizing more resource on your server. All working process in Linux or different Operating system identify by its distinctive ID no which known as process identifier (course of ID or PID) and has personal identifier number.

In this article, we’ll talk about some easy steps of Linux administration. Let’s have some quick example to grasp.

To View running Processes in Linux

# high 

The best solution to discover out what processes are working in your Linux server is to run the high command:

high - 15:14:40 up 46 min,  1 consumer,  load common: 0.00, 0.01, 0.05
Duties:  56 whole,   1 working,  55 sleeping,   Zero stopped,   Zero zombie
Cpu(s):  0.0percentus,  0.0percentsy,  0.0percentni,100.0percentid,  0.0percentwa,  0.0percenthi,  0.0percentsi,  0.0percentst
Mem:   1019600ok whole,   316576ok used,   703024ok free,     7652ok buffers
Swap:        0k whole,        0k used,        0k free,   258976ok cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
  1 root      20   0 24188 2120 1300 S  0.0  0.2   0:00.56 init               
  2 root      20   0     0    0    Zero S  0.0  0.0   0:00.00 kthreadd           
  Three root      20   0     0    0    Zero S  0.0  0.0   0:00.07 ksoftirqd/0    

Using high command, it shows details about the system statistics, utilize system load and the overall variety of duties.

high – 15:14:40 up 46 min, 1 consumer, load common: 0.00, 0.01, 0.05

You’ll be able to simply see that there’s 1 working process of, and 55 processes are sleeping (aka idle/not utilizing CPU sources).

Duties: 56 whole, 1 working, 55 sleeping, Zero stopped, Zero zombie

The underside portion has the working processes and their utilization statistics with extra advance particulars.

PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
 1 root      20   0 24188 2120 1300 S  0.0  0.2   0:00.56 init               
 2 root      20   0     0    0    Zero S  0.0  0.0   0:00.00 kthreadd

PS Command:

To get an extra full image of the processes on this technique, we can run the next:

 $PS
 PID TTY          TIME CMD
 1017 pts/0    00:00:00 bash
 1262 pts/0    00:00:00 ps

To extra utilization of any particular process, simply use command:

$ps aux

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND root         1  0.0  0.2  24188  2120 ?        Ss   14:28   0:00 /sbin/init root         
2  0.0  0.0      0     0 ?        S    14:28   0:00 [kthreadd] root         
3  0.0  0.0      0     0 ?        S    14:28   0:00 [ksoftirqd/0]
How you can use ‘ps aux | grep command’

ps command reveals details about the lively processes and you should utilize use following command to filter a process with its identifier.

Instance –

$ ps aux
$ ps aux | grep -i 'search-term'
$ ps aux | grep 'firefox'
$ ps aux | grep 'sshd'