Although we entered our account when logging on to Linux, the Linux host does not directly know your account name. He only knows the ID, the relationship between your ID and your account is in/etc/passwd.
Each login user has at least two IDs, one being the user ID and the other being the user group ID,
The ID information is mainly stored in/etc/passwd and/etc/group. Interested readers can view it by themselves.
Add and delete users:
Useradd
Useradd [-u uid] [-g gid] [-D main folder Directory] account name
Useradd Aviva
Add a password to a user
Passwd Aviva
In this way, the user is added.
Delete a user
Userdel-r Aviva
Delete with the user's main folder
Add a user group
Groupadd [-g gid] [-R] User Name
-G is followed by a specific GID,
-R: Create a system user group
Create a user group named group1
Groupadd group1
Delete a user group
Groupdel group1