useradd
Linux · Users and permissions · available in the simulator
What it does
Create a new user account on the system.
Syntax
useradd [opciones] usuario
Options and parameters
-mCreate the user's home directory.
sudo useradd -m ana-sDefine the default login shell.
sudo useradd -s /bin/bash ana-GAdd the user to the specified supplementary groups.
-gDefine the user's primary group.
-dPath to the home directory.
-eAccount expiration date.
Usage examples
sudo useradd -m anasudo useradd -s /bin/bash ana