Skip to main content
Linux AdministrationMediumSingle Choice

Linux Administration Question

Statement

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

#usermod#groupmod#passwd#gpasswd#userdel
A

grouprm

B

groupmod

C

passwd

D

usergroups

E

usermod

Correct

Resolution & Explanations

The usermod -G command is used to change the groups a user belongs to. Note that gpasswd -d is also commonly used for this purpose.