CompTIA Linux+ (XK0-005) — Question 157
A Linux engineer needs to download a ZIP file and wants to set the nice value to -10 for this new process. Which of the following commands will help to accomplish the task?
Answer options
- A. $ nice -v -10 wget https://foo.com/installation.zip
- B. $ renice -v -10 wget https://foo.com/installation.zip
- C. $ renice -10 wget https://foo.com/installation.zip
- D. $ nice -10 wget https://foo.com/installation.zip
Correct answer: D
Explanation
The correct command is D, as 'nice -10' is used to start a new process with a specified niceness value of -10. Option A incorrectly uses '-v', which is not valid for 'nice', while options B and C use 'renice', which modifies the niceness of an existing process rather than starting a new one.