Bird
0
0

Which of the following is the correct syntax to run the command apt update with elevated privileges?

easy📝 Syntax Q12 of 15
Linux CLI - Users and Groups
Which of the following is the correct syntax to run the command apt update with elevated privileges?
Asudo apt update
Bapt sudo update
Csudo -u apt update
Dapt update sudo
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct sudo syntax

    The correct syntax is sudo [command], so sudo apt update is valid.
  2. Step 2: Check each option

    Options A, B, and D place sudo incorrectly or misuse flags.
  3. Final Answer:

    sudo apt update -> Option A
  4. Quick Check:

    sudo before command = correct syntax [OK]
Quick Trick: Put sudo before the command to elevate it [OK]
Common Mistakes:
  • Placing sudo after the command
  • Using sudo with wrong flags
  • Mixing sudo with user flags incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes