ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 202 - XK0-005 discussion

Report
Export

An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

A.
renice ---n ---15 2274
Answers
A.
renice ---n ---15 2274
B.
nice -15 2274
Answers
B.
nice -15 2274
C.
echo '---15' > /proc/PID/2274/priority
Answers
C.
echo '---15' > /proc/PID/2274/priority
D.
ps ---ef I grep 2274
Answers
D.
ps ---ef I grep 2274
Suggested answer: A

Explanation:

The renice command is used to change the priority of a running process by specifying its PID and the new nice value. The -n flag indicates the amount of change in the nice value, which can be positive or negative. A lower nice value means a higher priority, so -15 will increase the priority of the process with PID 2274. The administrator needs to have root privileges to do this.

The renice command is listed as one of the commands to manipulate process priority in the web search result1.

The renice command is also explained with examples in the web search result2.

The CompTIA Linux+ Certification Exam Objectives mention that the candidate should be able to ''manage process execution priorities'' as part of the System Operation and Maintenance domain1.

asked 02/10/2024
Talal Elemam
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first