Which command will display the groups a user account is a member of? To display the group(s) a user belongs to use this command:
Which command will display information about a user? The id command prints information about a given user, or the currently logged in user if no user name or ID is provided as an argument.
Which command will display the user that are currently logged in to the system? The who command is used to display the users logged into the system. The who command related to the w command that is used to display information about the users currently on the machine and their processes.
Which command would allow a user to switch to the root user’s account? The sudo command grants a one-time or limited-time access to root functionality. Typically, the sudo command is used to quickly run an administrative command, then return to the user account’s regular permissions. To provide sudo access, the user has to be added to the sudo group.