exam questions

Exam 220-1002 All Questions

View all questions & answers for the 220-1002 exam

Exam 220-1002 topic 1 question 62 discussion

Actual exam question from CompTIA's 220-1002
Question #: 62
Topic #: 1
[All 220-1002 Questions]

A junior Linux systems administrator needs to update system software.
Which of the following shell commands would allow the administrator to gain the necessary permissions to update the software?

  • A. sudo
  • B. chmod
  • C. grep
  • D. pwd
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
Takoyaki
Highly Voted 4 years, 7 months ago
sudo is the most correct answer. Being able to issue a command as a superuser will allow the administrator to execute the designated update. chmod is incorrect as this command changes the owner of a file. grep is incorrect as this command searches plaintext data for its criteria. pwd is incorrect as this prints the current working directory.
upvoted 9 times
Farinaz
3 years, 1 month ago
chmod changes the permissions, Chown will change the owner.
upvoted 2 times
...
nischal123
4 years, 5 months ago
it is actually the only correct answer
upvoted 4 times
...
...
c22e828
Most Recent 1 year, 4 months ago
The sudo command in Linux allows a permitted user to execute a command as the superuser or another user, as specified in the sudoers file. This would allow the junior Linux systems administrator to gain the necessary permissions to update the system software. The other commands listed have different uses: chmod: Changes the permissions of files or directories. grep: Searches files for lines that match a given pattern. pwd: Prints the current working directory. None of these would grant the necessary permissions to update system software.
upvoted 1 times
...
TripeV
3 years, 3 months ago
Sure Sudo is the most correct answer
upvoted 1 times
...
KIng16
3 years, 10 months ago
chmod = changes PERMISSION to a file or folder!!
upvoted 4 times
Burg
3 years, 6 months ago
True, but Sudo elevates privileges. With COMPTIA, this would be the best answer
upvoted 2 times
manujoe
3 years, 6 months ago
I'm sure he was just correcting Takoyaki
upvoted 2 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