220-1002 · Question #795
A Linux user types the following command: apt-get update The action is denied due to insufficient privileges. Which of the following should precede the above command to successful execution?
The correct answer is B. sudo. sudo (superuser do) temporarily elevates the current user's privileges to root level for a single command. Running 'sudo apt-get update' allows the package manager to update its index, which requires write access to system directories. vi (A) is a text editor, not a privilege…
Question
A Linux user types the following command:
apt-get update The action is denied due to insufficient privileges. Which of the following should precede the above command to successful execution?
Options
- Avi
- Bsudo
- Cchmod
- Dgrep
How the community answered
(26 responses)- B96% (25)
- D4% (1)
Explanation
sudo (superuser do) temporarily elevates the current user's privileges to root level for a single command. Running 'sudo apt-get update' allows the package manager to update its index, which requires write access to system directories. vi (A) is a text editor, not a privilege escalation tool. chmod (C) changes file/directory permissions but cannot grant elevated execution rights for system commands. grep (D) is a text search utility with no relation to privilege escalation.
Topics
Community Discussion
No community discussion yet for this question.