Pages

Saturday, June 24, 2017

12 TOP Command Examples in Linux

This is the part of our on-going series of commands in Linux. We have covered basic ls command and cat command. In this article, we are trying to explore top command which is one of the most frequently used commands in our daily system administrative jobs. top command displays processor activity of your Linux box and also displays tasks managed by kernel in real-time. It’ll show processor and memory are being used and other information like running processes. This may help you to take correct action. top command found in UNIX-like operating systems.
Linux Top Command Examples
Linux Top Command Examples
You might also be interested in following tutorials :

  1. Htop (Linux Process Monitoring) tool for RHEL, CentOS & Fedora
  2. Iotop (Monitor Linux Disk I/O) in RHEL, CentOS and Fedora

1. Display of Top Command

In this example, it will show information like tasksmemorycpu and swap. Press ‘q‘ to quit window.
# top
Linux Top Command
Linux Top Command

2. Sorting with -O (Uppercase Letter ‘O’).

Press (Shift+O) to Sort field via field letter, for example press ‘a‘ letter to sort process with PID (Process ID).
Sorting Process ID's with Top
Sorting Process ID’s with Top
Type any key to return to main top window with sorted PID order as shown in below screen. Press ‘q‘ to quit exit the window.
      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
                                                    ► Read more: http://adf.ly/1n7STp

      ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

No comments:

Post a Comment