ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 146 - XK0-005 discussion

Report
Export

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?

A.
$ nice -v -10 wget https://foo.com/installation.zip
Answers
A.
$ nice -v -10 wget https://foo.com/installation.zip
B.
$ renice -v -10 wget https://foo.com/installation.2ip
Answers
B.
$ renice -v -10 wget https://foo.com/installation.2ip
C.
$ renice -10 wget https://foo.com/installation.zip
Answers
C.
$ renice -10 wget https://foo.com/installation.zip
D.
$ nice -10 wget https://foo.com/installation.zip
Answers
D.
$ nice -10 wget https://foo.com/installation.zip
Suggested answer: D

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. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 15: Managing Memory and Process Execution, page 469.

asked 02/10/2024
Peter Kiraly
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first