-
Notifications
You must be signed in to change notification settings - Fork 62
/
top
23 lines (12 loc) · 747 Bytes
/
top
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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.