Creating,
modifying, and deleting
local user accounts and groups141
Important NoteWe are using the -aG option
to add the user to the group, instead of modifying the groups the user belongs to.
Once we know
how to create users and groups, let’s check how to delete them with the userdel command:
[root@rhel-instance
]# userdel user01[root@rhel-instance
]# grep user /etc/passwd[root@rhel-instance
]# id user01id: 'user no such userShare with your friends: