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

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?

Answer options

Correct answer: B

Explanation

The correct answer is B, 'sudo', which allows a permitted user to execute a command as the superuser or another user. The other options, 'vi', 'chmod', and 'grep', do not provide the necessary privileges to run the 'apt-get update' command and serve different purposes unrelated to privilege escalation.