How to identify the useradd and adduser commands in Ubuntu

  
                

In the Ubuntu command, the useradd command can be used to create users, and the adduser can also be used to add user accounts. The two seem to be the same. In fact, there are some differences in the use. The following small series teaches you how to identify useradd and adduser in Ubuntu. command.

Difference

useradd username does not create a folder username under /home

adduser username will create a folder username under /home

Like adduser useradd -m username, you can create a folder username



the above is the difference between Ubuntu useradd and adduser command in the introduction, we can see that only two commands The difference is whether the folder username will be created in /home.

Copyright © Windows knowledge All Rights Reserved