更改 linux 密码

passwd

passwd liuhonghe
echo "new_password" | passwd --stdin liuhonghe

chpasswd

# 用户名:新密码
echo "liuhonghe:new_password" | chpasswd

列出所有 home 用户

cat /etc/passwd | grep "/home" | cut -d":" -f1