adduser command in Linux is used to add new user for Linux machine. Adding a new user also creates the new user directory under the /home directory. Only root or users with sudo privileges can use the adduser command to add new user. In this tutorial, you will learn about adduser command in Linux with Example.
Install adduser in Linux
Install adduser in Ubuntu or Debian-based system
sudo apt install adduser
Install adduser in Fedora
sudo dnf install adduser
Install adduser in CentOS or RedHat
sudo yum install adduser
adduser -h
Check the version of adduser
adduser -version
Add a new user
sudo adduser happy
Add a new user with a different home directory
Add a new user without a home directory
Add a new user with specific user-id
Add a new user with specific group id
Add a new user with the expiry date
Adding a new user with password expiry date
Adding a new user with account expiry date
A |
adduser | addgroup | alias | anacron | apt | aptitude | arp | at | atq | atrm | awk |
B |
basename | banner | batch | bc | bg | bzip |
C |
cat | cal | cd | chgrp | chown | cksum | chmod | clear | cmp | comm | cp |
D |
date | dd | df | diff | dir | dmidecode | du |
E |
echo | eject | env | exit | expr |
F |
factor | find | free |
G |
grep | groups | gunzip | gzip |
H |
head | history | hostname | hostnamectl | htop | hwclock | hwinfo |
I |
id | ifconfig | ionice | iostat | ip | iptables | iw | iwlist |
J |
K |
kill | kmod |
L |
last | less | ln | locate | login | lp | ls | lshw | lscpu | lsof | lsusb |
M |
man | mdsum | mkdir | more| mv |
N |
nano | nc | neofetch | netcat | netstat | nice | nmap | nproc |
O |
openssl |
P |
passwd | pidof | ping | pr | ps | pwd | pstree |
Q |
R |
rdiff-backup | reboot | rename | rm | rmdir | rnmod |
S |
scp | shred | shutdown | sleep | sort | split | ssh | stat | su | sudo | sum |
T |
tac | tail | talk | tar | tee | time | tree | top | touch | tr |
U |
unalias | uname | uniq | unzip | uptime | users |
V |
vim | vi |
W |
w | wall | watch | wc | wget | whatis | whereis | which | who | whoami |
X |
xargs |
Y |
yes | youtube-dl |
Z |
zcmp | zdiff | zip | zz |