sudo useradd -d [user’s home folder] -m [username]
The above command creates the user’s account and their home folder but you still need to create their password. For that, you want to use passwd.
sudo passwd [username]
So, now that we have created the account, how do you delete it? For removal of user accounts, there is deluser.
Now, let us check out a real-world example.