exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 228 discussion

Actual exam question from CompTIA's XK0-005
Question #: 228
Topic #: 1
[All XK0-005 Questions]

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
  • B. nice -15 2274
  • C. echo "-15" > /proc/PID/2274/priority
  • D. ps -ef | grep 2274
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BlackSkullz
Highly Voted 8 months, 4 weeks ago
Selected Answer: A
The difference between A and B is that the "nice" command is used to modify the priority of processes when they start and "renice" is used to modify the priority of processes that already exist. In this case, the process is already running and has a PID number, so the "renice" command should be used to modify its priority
upvoted 6 times
...
bongobo
Most Recent 1 year, 2 months ago
B is correct also
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago