CompTIA A+ Core 2 (220-1002) — Question 470

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?

Answer options

Correct answer: A

Explanation

The command 'sudo' is used to execute commands with elevated privileges, making it the correct choice for updating software. The 'chmod' command changes file permissions, 'grep' searches text using patterns, and 'pwd' displays the current directory, none of which are suitable for gaining permissions to update software.