Linux Administration I want to create a new user mike I want

Linux Administration
I want to create a new user mike. I want his home directory to be /home/mikey, and I want his user ID to be 323. What single command would do this?

Solution

useradd -d /home/mikey -u 323 mike

This command gets the job done. useradd will create a new user and -d option will specify the home directory and -u option will specify the userid and the name of user is mike.

Linux Administration I want to create a new user mike. I want his home directory to be /home/mikey, and I want his user ID to be 323. What single command would

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site