Top command display processor activity and displays tasks managed by kernel in real time . It is the most popular linux command to monitor processes . This command display processes with detailed information like process name , pid , cpu uses , memory uses , nice value and many more things . It also shows some information about your system like average load , ram uses , zombie process . You can use top command in any unix type operating system .  In this article i am going to show you 10 example of TOP command in linux .

1.  Use TOP command 

You can use top command by simply run it on command line interface as given below –

The output of this command looks like given below –

top command
We can see in the output , it shows many information about our process and tasks in real time .

You can check version of top command through command line interface as given below –

The output of this command shows version of top command running in your system .

2.  Show / hide memory information

you can show or hide memory information by pressing “m

memory information
In this output you can see the memory information of your system by pressing “m” . If you press “m” again , the memory information will be hide .

3.  Show hide task information

You can show or hide task information by pressing “t

cpu task information
In this output you can see the task information of your system by pressing “t” . If you press “t” again , the task information will be hide .

4. Show hide load average

You can show or hide load average by pressing “l

load average
In this output you can see the load average of your system by pressing “l” . If you press “l” again , the load average will be hide .

5. Arrange PID in ascending order

You can arrange PID in ascending order by pressing “R

pid in linux
In this output you can see  PID is arranged  in ascending order by pressing “R” .

6. See process of particular user

You can see process of particular user by pressing “u

users process

7. Sort according to CPU

You can sort according to CPU by pressing “P

cpu

8. Sort according to memory

You can sort according to memory by pressing “M

sort memory

9. Kill the process

You can kill the process by pressing “k

kill process

10. Quit

You can quit by pressing “q

quit top

You may also like to read following article :

In this short article , we have explained about 10 Example of TOP Command in linux.