Courseiva
System Management →mediumMultiple Choice

XK0-006 System Management Practice Question

An administrator wants to change the priority of a running process with PID 1234 to a lower priority (nicer). The current nice value is 0. Which command will set the nice value to 10?

⚠ Common exam trap

The Linux+ exam often tests the distinction between `renice` (for running processes) and `nice` (for launching a new process with a modified priority), and candidates may confuse `renice` with `nice` or think `kill` can change priority via signal numbers.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

renice 10 -p 1234

The `renice` command is used to alter the scheduling priority of an already running process. By default, a process starts with a nice value of 0. Running `renice 10 -p 1234` sets the nice value to 10, which is a lower priority (more 'nice') because the kernel adds this value to the dynamic priority calculation, giving the process less CPU time.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    renice 10 -p 1234

    Why this is correct

    renice alters the nice value of an already-running process identified by PID, so renice 10 -p 1234 raises niceness from 0 to 10, lowering scheduling priority. The -p flag specifies the target PID, satisfying the requirement to change a running process rather than launch a new one.

  • ✗

    nice -n 10 kill 1234

    Why it's wrong here

    The nice command launches a new process with an adjusted niceness; it cannot retarget an already-running PID, and kill only signals processes. To change a running process, renice -n 10 -p 1234 is required. The nice syntax is tempting because it correctly sets niceness values, but only at process creation.

  • ✗

    chrt -p 10 1234

    Why it's wrong here

    chrt sets scheduling policy and real-time priority, not the nice value; passing 10 would be interpreted as a priority for a scheduling class. It is tempting for priority changes, but adjusting niceness on a running process requires renice 10 -p 1234.

  • ✗

    kill -10 1234

    Why it's wrong here

    kill -10 sends signal 10 (SIGUSR1) to the process rather than altering its nice value, so the scheduling priority is unchanged. It is tempting because kill targets a running PID, but renice 10 -p 1234 is the command that sets niceness.

About these practice questions

Courseiva writes every XK0-006 question from scratch — 781 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.