To see process information in real time, use the
top is a text-based program that shows all processes running and updates every few seconds so you can monitor them in real-time.
The view is separated into two halves - the top half is the system summary, while the bottom half is a table of processes sorted by the CPU activity.
top is sorted by CPU usage by default.
Let's break down just the top half part of
top - 23:07:07 up 13 min, 2 users, load average: 0.02, 0.14, 0.14 Tasks: 160 total, 3 running, 157 sleeping, 0 stopped, 0 zombie %Cpu(s): 31.7 us, 8.9 sy, 0.0 ni, 59.1 id, 0.4 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem: 501496 total, 495492 used, 6004 free, 2568 buffers KiB Swap: 522236 total, 289316 used, 232920 free. 83052 cached Mem
First row, top:
Another way you can check load average without going through
top is with the
uptime command. You can use this command to quickly check if you have a runaway process that may have hung.
You can access the help screen with the
h key or
?. To quit, press
q. Here are some other commands you may use:
top, like many other commands, come with several options.
Linux for Beginners doesn't make any assumptions about your background or knowledge of Linux. You need no prior knowledge to benefit from this book. You will be guided step by step using a logical and systematic approach. As new concepts, commands, or jargon are encountered they are explained in plain language, making it easy for anyone to understand.$ Check price
Relieve your stress, back, neck and sciatic pain through 1,782 acupuncture points for immediate neck pain relief. Made for lower, upper and mid chronic back pain treatment, and improves circulation, sleep, digestion and quality of life.$$ Check price