什么命令可以统计当前系统中一共有多少账户?

13 查阅
什么命令可以统计当前系统中一共有多少账户?

参考答案:

awk -f “:” ‘{print $1}’ /etc/passwd | wc -l

或者 cat /etc/passwd | wc -l

账户