Back to the learning path

top

top: shows the top resource consumers Command details
Step 1/1: Batch mode

top shows the busiest processes and the system load live; q quits, M sorts by memory. -b (batch) prints the screens as plain text and -n 1 prints just one, for pipes and scripts.

$ top -b -n 1 | head
Fundamentalstopprocess
Take one look at the system load
top normally keeps refreshing until you press q. Make it print just once in batch mode, and show only the first 8 lines with head.

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

nohupNext lesson:pkill