top (table of process) command allows users to monitor processes, CPU information and memory utilization in Linux. It is pre-installed on all linux distributions. In this article we will learn that how to use top command.
Run top command and it will show the following
top
PID: Shows each task unique process id.
PR: shows task priority
SHR: Represents the amount of shared memory used by a task.
VIRT: Total virtual memory.
USER: User name or owner of task.
%CPU: Represents the CPU usage.
TIME+: CPU Time
SHR: display Shared Memory in kb used by a task.
NI: Shows a Nice Value of task. A Negative nice value means higher priority, and positive Nice value means lower priority.
%MEM: Shows the Memory usage of task.
press “q” on your keyboard to quite from top.
When you execute top command press “z” key to highlight running processes.
Make sure press “c” after running top command and it will show the path of processes.
After running Top command you can see all processes along with their process ID (PID)
If you want to kill a process,
simply run “Top” command to find your specific process ID,
Press “k” and then type your PID number
and press “enter” key to kill it.
Renice is used to change a process priority.
By simply running a “top” command you can find your specific process ID.
I will renice the priority of PID 22.
Use this command “renice -n -10 p22” to change the priority of the process. You can select your own PID.
You gonna see the Old priority and new one.
That’s about it.
The post Use of Top Command in Linux appeared first on Osgrove.
Today, IBM announced the launch of their latest server: the new IBM LinuxONE Emperor 5.…
Welcome to the Ubuntu Weekly Newsletter, Issue 890 for the week of April 27 –…
Singapore | May 27, 2025 | Full-day event How do you build robust, performant edge…
Kolla Ansible provides production-ready containers (here, Docker) and deployment tools for operating OpenStack clouds. This…
This public beta enables the full Ubuntu Desktop experience on the Qualcomm Dragonwing™ QCS6490 and…
Time is running out to be in full compliance with the EU Cyber Resilience Act,…