useradd
CautionCreate a user
useradd -m -s /bin/bash <user>
Creates a user. -m makes the home dir, -G sets extra groups. Set a password with passwd afterwards.
Examples
useradd -m -G sudo taroCreate user in sudo group
Syntax
useradd [-m] [-s shell] [-G groups] <user>
Before you run it
Avoid UID collisions with system users.
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store