Bird
0
0

What does the su command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Users and Groups
What does the su command do in Linux?
AUpdates the system packages
BShows the current user's groups
CSwitches the current user to another user
DDisplays the current directory contents
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of su

    The su command is used to switch from the current user to another user in the terminal.
  2. Step 2: Compare options

    Updating system packages uses apt or yum, showing user's groups uses 'groups', displaying directory contents uses 'ls'. These are unrelated to user switching.
  3. Final Answer:

    Switches the current user to another user -> Option C
  4. Quick Check:

    su = switch user [OK]
Quick Trick: Remember: su means switch user [OK]
Common Mistakes:
  • Confusing su with commands like ls or groups
  • Thinking su updates software
  • Assuming su shows files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes