본문 바로가기

Linux

Working with top

1. On a LinuxAcademy.com lab server start the top program.

[root@localhost]# top

2. The top program shows all running processes on the system but sorts them. Using your keyboard, browse up and down to view the processes.

Use the keyboard up and down arrows to navigate

3. Sort all processes by memory percentage.

shift + m

4. Sort all processes by CPU usage.

shift + p

5. Renice the process for the script started at the beginning of the exercise. The command will be  "bash" displayed in the top program. Set the nice level to -20.

Press the "r" key, enter the process id of the process you want to renice, and set the nice level.

6. Kill the bash script using top.

Press the "k" key and enter the process id to kill then press enter.