Bird
0
0

Which of the following best describes the function of the sudo command in Linux?

easy📝 Conceptual Q1 of 15
Linux CLI - Users and Groups
Which of the following best describes the function of the sudo command in Linux?
ASwitch to a different user account permanently
BExecute commands with the privileges of another user, typically root
CDisplay the current user's privileges
DList all users who have administrative rights
Step-by-Step Solution
Solution:
  1. Step 1: Understand sudo's purpose

    sudo allows a permitted user to execute a command as the superuser or another user.
  2. Step 2: Differentiate from other commands

    Unlike su, which switches user accounts, sudo runs a single command with elevated privileges.
  3. Final Answer:

    Execute commands with the privileges of another user, typically root -> Option B
  4. Quick Check:

    sudo runs commands as root or another user [OK]
Quick Trick: sudo runs commands as root temporarily [OK]
Common Mistakes:
  • Confusing sudo with su for permanent user switch
  • Thinking sudo displays user privileges
  • Assuming sudo lists admin users

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes