and why there is more than one command for the same purpose
Best Answer
There is no difference in the functions provided, just that useradd is a compiled binary, and adduser is a perl script. adduser is more user-friendly, so it could fit better for a beginner.
Use adduser create a fully functional user on the system. The command will run tasks like creating home directory, creating a group for it, promting for password, etc. Beside that useradd will just create the user (ofcourse you can use switches, but the default is just the user creation).
The two commands are not identical (adduser runs useradd and many other things).
Best Answer
There is no difference in the functions provided, just that
useradd
is a compiled binary, andadduser
is a perl script.adduser
is more user-friendly, so it could fit better for a beginner.Use
adduser
create a fully functional user on the system. The command will run tasks like creating home directory, creating a group for it, promting for password, etc. Beside thatuseradd
will just create the user (ofcourse you can use switches, but the default is just the user creation).The two commands are not identical (
adduser
runsuseradd
and many other things).