Linux Essentials (010-160) — Question 10
What is true about the su command?
Answer options
- A. It is the default shell of the root account.
- B. It can only be used by the user root.
- C. It runs a shell or command as another user.
- D. It changes the name of the main administrator account.
- E. It locks the root account in specific time frames.
Correct answer: C
Explanation
The correct answer is C because the su command is specifically designed to allow a user to run commands or start a shell as another user, typically the root user. Option A is incorrect as the default shell for the root account can vary, and option B is wrong because other users can use su if they have the necessary privileges. Options D and E are also incorrect as they do not accurately describe the functionality of the su command.