Linux CLI - Users and GroupsWhich of the following commands correctly locks a user account named 'bob' to prevent login?Auseradd -l bobBpasswd -l bobCusermod -u bobDpasswd -u bobCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify command to lock accountThe 'passwd -l username' command locks the user account by disabling the password.Step 2: Check other options'useradd' adds users, 'usermod -u' changes UID, 'passwd -u' unlocks accounts.Final Answer:passwd -l bob -> Option BQuick Check:Lock user command = B [OK]Quick Trick: Use 'passwd -l username' to lock accounts [OK]Common Mistakes:Confusing useradd with lockingUsing passwd -u which unlocks accountsMisusing usermod for locking
Master "Users and Groups" in Linux CLI9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Linux CLI Quizzes File Permissions and Ownership - Numeric permission mode (755, 644) - Quiz 13medium File Permissions and Ownership - chmod (change permissions) - Quiz 12easy File and Directory Operations - mkdir (create directories) - Quiz 7medium Linux Basics and Terminal - Opening and using the terminal - Quiz 14medium Navigating the File System - Home directory (~) and shortcuts - Quiz 15hard Navigating the File System - Home directory (~) and shortcuts - Quiz 5medium Navigating the File System - Absolute vs relative paths - Quiz 9hard Users and Groups - sudo for elevated privileges - Quiz 2easy Users and Groups - su (switch user) - Quiz 10hard Users and Groups - useradd and userdel - Quiz 12easy