220-1002 · Question #28
A junior Linux system 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?
The correct answer is A. sudo. sudo (superuser do) prepends a command to execute it with root-level privileges without logging in as root directly. For example, sudo apt update runs the update with elevated permissions. chmod (C) changes file permission bits but does not elevate the running user's…
Question
A junior Linux system 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?
Options
- Asudo
- Bchmod
- Cgrep
- Dpwd
How the community answered
(21 responses)- A86% (18)
- B5% (1)
- D10% (2)
Explanation
sudo (superuser do) prepends a command to execute it with root-level privileges without logging in as root directly. For example, sudo apt update runs the update with elevated permissions. chmod (C) changes file permission bits but does not elevate the running user's privileges. grep (C) searches text patterns. pwd (D) prints the current working directory. Only sudo grants the temporary privilege escalation needed to install or update system software.
Topics
Community Discussion
No community discussion yet for this question.