Bird
0
0

Which of these is the correct syntax to switch to user alice and load her full environment?

easy📝 Syntax Q12 of 15
Linux CLI - Users and Groups
Which of these is the correct syntax to switch to user alice and load her full environment?
Asu - alice
Bsu alice
Csu --user alice
Dsu /alice
Step-by-Step Solution
Solution:
  1. Step 1: Recall the syntax for full environment loading

    Using su - username switches user and loads their full environment.
  2. Step 2: Check options

    su alice changes user without full environment, su --user alice uses invalid flag, su /alice is invalid syntax.
  3. Final Answer:

    su - alice -> Option A
  4. Quick Check:

    Use dash (-) to load full environment [OK]
Quick Trick: Use dash (-) after su for full environment [OK]
Common Mistakes:
MISTAKES
  • Omitting the dash (-) to load environment
  • Using wrong flags like --user
  • Adding slashes before username

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes