To create a new user account on an Ubuntu Linux system, you can use the adduser command. The adduser command is a standard Unix command that is used to create a new user account on the system.
Log in to your Ubuntu system as the root user.
Run the adduser command with the desired username as an argument. For example, to create a new user account with the username myuser, you can use the following command:
adduser myuser
This will create a new user account with the default settings, including a default home directory and a default group.
Follow the prompts to set the password and other information for the new user account.
To customize the settings for the new user account, you can use the usermod command. For example, to set the user's full name and add the user to additional groups, you can use the following command:
usermod -c "Full Name" -a -G group1,group2 myuser
This will set the user's full name to "Full Name" and add the user to the group1 and group2 groups.
-s option. For example, to set the user's login shell to bash, you can use the following command:usermod -s /bin/bash myuser
deluser command. For example:deluser myuser
This will delete the user account and the user's home directory.