Bird
0
0

Which of the following is the correct syntax to delete a user named bob and remove his home directory?

easy📝 Syntax Q3 of 15
Linux CLI - Users and Groups
Which of the following is the correct syntax to delete a user named bob and remove his home directory?
Auserdel -r bob
Buserdel bob --home
Cuserdel --remove bob
Duserdel bob -r
Step-by-Step Solution
Solution:
  1. Step 1: Recall the correct syntax for userdel with options

    The option -r must come before the username to remove the home directory and mail spool.
  2. Step 2: Analyze each option

    userdel -r bob correctly places -r before bob. Options A, B, and C are incorrect syntax or invalid options.
  3. Final Answer:

    userdel -r bob -> Option A
  4. Quick Check:

    Correct syntax = userdel -r username [OK]
Quick Trick: Put options before username in userdel command [OK]
Common Mistakes:
MISTAKES
  • Placing options after username
  • Using invalid options like --home
  • Confusing option names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes