Bird
0
0

As root, which command correctly changes the password for user bob?

easy📝 Syntax Q3 of 15
Linux CLI - Users and Groups
As root, which command correctly changes the password for user bob?
Apasswd --user bob
Bpasswd -u bob
Cpasswd --change bob
Dpasswd bob
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct syntax

    The standard syntax to change a user's password as root is passwd username.
  2. Step 2: Review options

    Options B, C, and D use invalid or non-existent flags for passwd.
  3. Final Answer:

    passwd bob -> Option D
  4. Quick Check:

    passwd username changes that user's password [OK]
Quick Trick: Use 'passwd username' as root to change password [OK]
Common Mistakes:
  • Using incorrect or unsupported flags
  • Trying to use passwd without specifying user
  • Assuming passwd needs extra options for root

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes