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.
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
Command Line Kung Fu is packed with dozens of tips and practical real-world examples. You won't find theoretical examples in this book. The examples demonstrate how to solve actual problems. The tactics are easy to find, too. Each chapter covers a specific topic and groups related tips and examples together.$ Check price