Skip to content

Linux Users & Sudo Permissions – Full Quiz

Back to Users & Sudo Permissions
Back to Linux Commands
Back to Quiz Home


This quiz contains 20 questions focused on Linux user management and sudo permissions. It helps DevOps engineers understand access control on production systems.


#

Which command is used to switch to the root user?

#

Which command switches to another user without loading their environment?

#

Which command switches to another user and loads their environment?

#

Which file stores user account information?

#

Which file stores encrypted user passwords?

#

Which command is used to create a new user?

#

By default, what does useradd NOT create?

#

Which option with useradd creates a home directory?

#

Which command is used to set or change a user password?

#

Which command shows user ID and group ID details?

#

Which group provides sudo access on CentOS / RHEL?

#

Which group provides sudo access on Ubuntu?

#

Which command adds a user to a group?

#

Which command verifies group membership of a user?

#

Which command removes a user from a group?

#

Which command deletes a user account but keeps home directory?

#

Which command deletes a user account and home directory?

#

Which command allows editing system files with root privileges?

#

Which file defines sudo permissions?

#

Which command should be used to safely edit the sudoers file?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📩 Get weekly DevOps quizzes & guides

📬 Weekly DevOps, Cloud & Gen AI quizzes & guides