How to add a new user with its own directory and shell Debian [closed]

Solution 1:

So i tried this and worked for me

sudo useradd test

//enter password and other info

then login with

su-

//enter su password

and make this command to change its directory

usermod -m -d /home/test_home test

cat /etc/passwd   

//to check it