XK0-005 · Question #1441
A Linux engineer needs to download a ZIP file and wants to set the nice of value to -10 for this new process. Which of the following commands will help to accomplish the task?
The correct answer is D. $ nice -10 wget https://foo.com/installation.zip. The nice -10 wget https://foo.com/installation.zip command will help to accomplish the task of downloading a ZIP file and setting the nice value to -10 for this new process. The nice command can be used to run a program with a modified scheduling priority, which affects how…
Question
Options
- A$ nice -v -10 wget https://foo.com/installation.zip
- B$ renice -v -10 wget https://foo.com/installation.2ip
- C$ renice -10 wget https://foo.com/installation.zip
- D$ nice -10 wget https://foo.com/installation.zip
How the community answered
(47 responses)- A6% (3)
- B4% (2)
- C15% (7)
- D74% (35)
Explanation
The nice -10 wget https://foo.com/installation.zip command will help to accomplish the task of downloading a ZIP file and setting the nice value to -10 for this new process. The nice command can be used to run a program with a modified scheduling priority, which affects how much CPU time the process receives. The nice value ranges from -20 (highest priority) to 19 (lowest priority), and the default value is 0. The -10 option specifies the nice value to be used for the wget command, which will download the ZIP file from the given URL. The nice -v -10 wget https://foo.com/installation.zip command is incorrect, as -v is not a valid option for nice. The renice -v -10 wget https://foo.com/installation.zip command is incorrect, as renice is used to change the priority of an existing process, not a new one. The renice -10 wget https://foo.com/installation.zip command is incorrect for the same reason as above.
Topics
Community Discussion
No community discussion yet for this question.