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.
In this completely revised second edition of the perennial best seller How Linux Works, author Brian Ward makes the concepts behind Linux internals accessible to anyone curious about the inner workings of the operating system. Inside, you'll find the kind of knowledge that normally comes from years of experience doing things the hard way.$ Check price
Ever feel achy from sitting crunched up on your computer table? Try lying down with these optical glasses that allow you to work on your laptop while lying flat on your back. This is the perfect solution with those with limited mobility or those who wish to prevent neck cramps and back strains.$ Check price