Linux Foundation Certified System Administrator (LFCS) — Question 79

Which of the following commands can remove a user from a group?

Answer options

Correct answer: E

Explanation

The correct answer is E, as the usermod command allows for modifications to user accounts, including removing a user from a group. The other options do not serve this purpose: grouprm is not a valid command, groupmod is for modifying group properties, passwd is used for changing passwords, and usergroups is not a standard command.