RHEL Linux - Red Hat System Administration Practice Exam

Access More Questions
Which command allows you to switch to another user in a terminal session?
Correct Answer:
su [username]
Explanation:
The command that allows you to switch to another user in a terminal session is "su [username]." This command stands for "substitute user" or "switch user." When executed, it allows the current user to assume the identity of the specified user, granting them access to that user's permissions and environment. When you use "su [username]," if no username is specified, it defaults to switching to the root user, which is the administrative user on the system. This command can be used in a variety of scenarios, such as when you need to perform specific administrative tasks or access files that require different user permissions. The other options serve different purposes or are not valid commands in the context of switching users. For example, "switchuser" is not a standard command in RHEL Linux for switching users. "login" is typically used to initiate a new user session but does not function the same way as "su." Similarly, "user" is not a recognized command for user switching in the terminal environment. Thus, the "su [username]" command is the appropriate choice for switching users in a terminal session.

Access more questions from this quiz

Continue to RHEL Linux - Red Hat System Administration Practice Exam for more practice questions and the full quiz experience.

Access More Questions