useradd:tldr:90d53
The command sudo useradd --create-home ${username}
is used to create a new user on a Unix-like system.
Here's the breakdown of each part of the command:
-
sudo
: It is a command that allows a user to run programs or commands with the privileges of another user (usually the superuser or root) without logging in as that user. -
useradd
: This command creates a new user account on the system. -
--create-home
: This option instructs theuseradd
command to create a home directory for the user. The home directory is a location where the user can store personal files and configurations. -
${username}
: It is a placeholder that indicates you should replace it with the actual username you want to create. For example, if you want to create a user named "john", you would replace${username}
withjohn
.