Times are a-changin'! With Ubuntu and its Debian predecessors and what many (if not most) are familiar with when adding users via the terminal being 'adduser,' let's take a look at what Arch and Manjaro use and see how we can get comfortable with it!
Arch/Manjaro: 'useradd'
To add a new user:
sudo useradd -m -G groupname -s /bin/bash <username>
'-m' This creates the home directory for the user
'-G' This sets a group name. You can have multiple -G's in the command, or use one -G group1 group2 group3 etc.
'-s' This will set the terminal. For fish, /bin/fish, etc etc..
'<username>' A case sensitive user name
Then give the account a password:
sudo passwd <username>
To modify the groups of the user:
sudo usermod -G <groups> -a <accountname>
Groups:
To add a user as an admin, able to use the 'sudo' command, use '-G wheel'
The common groups are: sys network power lp wheel autologin
On many other popular operating systems, the group is simply called 'sudo' but with Arch and Manjaro, it uses the older but still common 'wheel' group. Ironically enough, 'wheel' will give you access to 'sudo'
The wheel group is a special user group used on some Unix systems, mostly BSD systems, to control access to the su or sudo command, which allows a user to masquerade as another user (usually the superuser). Debian-like operating systems create a group called sudo with a purpose similar to that of a wheel group.
The more you know!