Problem

In this hands-on project, you view and manage processes using the top command-line utili...

In this hands-on project, you view and manage processes using the top command-line utility.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type top and press Enter.

3. From the output on the terminal screen, record the following information:

a. Number of processes: _______________

b. Number of sleeping processes: _______________

c. Amount of total memory (K): _______________

d. Amount of total swap memory (K): _______________

4. While in the top utility, press the h key and observe the output. When finished, press any key to return to the previous top output.

5. By observing the output under the COMMAND column on your terminal screen, identify the PID of the top command in the output and record it: _______________.

6. Type r in the top utility to change the priority of a running process. When asked which process to change (renice), type the PID from the previous question. When asked which value to use, type 10 to lower the priority of the top process to 10. Does this new priority take effect immediately?

7. Type k in the top utility to send a kill signal to a process. When asked which process, type the PID used in the previous question. When asked which signal to send, type 2 to send an INT signal. Did the top utility terminate?

8. At the command prompt, type top and press Enter.

9. By observing the output under the COMMAND column on your terminal screen, identify the PID of the top command in the output and record it: _______________.

10. Type k in the top utility to send a kill signal to a process. When asked which process, type the PID from the previous question. When asked which signal to send, type 15 to send a TERM signal. Did the TERM signal allow top to exit cleanly?

11. At the command prompt, type clear and press Enter to clear the screen.

12. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 9