Which of the following actions will you perform to accomplish the task?

You work as a Network Administrator for Rick International. The company has a Linux-based
network. A process is running on a server. It is using a lot of processing power. You want the
process to use less resources. Which of the following actions will you perform to accomplish the
task?

You work as a Network Administrator for Rick International. The company has a Linux-based
network. A process is running on a server. It is using a lot of processing power. You want the
process to use less resources. Which of the following actions will you perform to accomplish the
task?

A.
Kill the process and rerun it by using the nice command with the -n 1 switch.

B.
Kill the process and rerun it by using the nice command with the -n 19 switch.

C.
Kill the process and rerun it by using the fg command.

D.
Kill the process and rerun it by using the bg command.

Explanation:

In order to accomplish the task, you will have to kill the process and rerun it by using the nice
command to lower the priority of the process.
You will have to run the following command: kill <process Id> : nice <process name> -n 19
The nice command is used to run a process with the desired priority level. The priority level varies
from 1 to 19. Level 1 is for the highest priority and level 19 is for the lowest. By default, every
process runs with the priority level 10.
Answer option C is incorrect. The fg command is used to run a process in the foreground.
Answer option D is incorrect. The bg command is used to run a process in the background.
Answer option A is incorrect. The -n 1 switch will provide the process the top priority.



Leave a Reply 0

Your email address will not be published. Required fields are marked *