CompTIA Linux+ Powered by LPI (LX0-104) — Question 29
What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)
Answer options
- A. The user bob is removed from the system's user database.
- B. The user bob's home directory is removed.
- C. The locate database is updated to drop files owned by bob.
- D. All files owned by bob are remove from all mounted filesystems.
- E. In case bob was the last member of a group, that group is deleted.
Correct answer: A, B
Explanation
Option A is correct because the command indeed removes the user bob from the system's user database. Option B is also correct as the command specifies --remove, which deletes bob's home directory. Options C, D, and E are incorrect because the command does not update the locate database, does not affect files on all mounted filesystems, and does not remove groups based on user deletion.