网上说可以通过passwd -aS查看,但实际情况是 其实通过一个简单的处理就可以实现了 cat /etc/passwd |awk -F’:’ ‘{print $1}’ |xargs -i passwd -S {}