Copied to clipboard
CMD Generator
Command generator online
Quick Access:
a
adduser
alias
apt-get
apt
at
awk
b
blkid
c
cat
cd
chgrp
chmod
chown
cp
crontab
curl
cut
d
dd
df
diff
dig
du
e
echo
emacs
export
f
fdisk
ffmpeg
find
firewalld
free
g
getenforce
grep
groupadd
groupmod
gunzip
gzip
h
halt
head
history
i
ifconfig
info
iptables
j
journalctl
k
kill
l
less
ln
locate
ls
lsblk
m
man
mkdir
mkfs
more
mount
mv
n
nano
netstat
nslookup
nuxi
p
passwd
patch
ping
pkill
poweroff
ps
pwd
r
reboot
rm
rmdir
route
rsync
rsyslogd
s
scp
sed
semanage
setenforce
shutdown
sort
source
ssh-keygen
ssh
su
sudo
systemctl
t
tail
tar
tee
top
touch
traceroute
u
ufw
umount
uniq
unzip
updatedb
uptime
usermod
v
vi
vim
vmstat
w
wc
wget
whereis
which
whois
y
yum
z
zip
passwd
The `passwd` command is used to change the user password.
$
Copy
Username
Leave it blank for the current user
Use all supported algorithms to generate passwords. (-a)
Delete the password, rendering the user account unusable. (-d)
Disable the user account after the password has expired. (-e)
Display help information and exit. (-h)
Set the number of days after password expiration before the account is disabled. (-i)
This option only applies to AIX systems. (-k)
Lock the password for the specified user account. (-l)
Set the number of days that a user cannot change their password. (-n)
Reduce the complexity requirements of the password. (-q)
Set the minimum age of the user's password. (-r)
This option only applies to SUSE systems. (-R)
Display the password status of the specified user account. (-S)
Unlock the password for the specified user account. (-u)
Display a warning N days prior to password expiration. (-w)
Generate and copy
Example
Change the password for the current user:
passwd
Change the password for user "john":
passwd john
Change the password for user "john" but disallow passwords previously used by john:
passwd -n 3 john
Change the password for user "john" but disallow the new password to be the same as the old password:
passwd -n 1 -r n john
Disable the password for user "john":
passwd -l john