在shell下输入以下语句即可获取:
who | awk ‘{print $1}‘ | sort | uniq | wc -l
linux下查看当前登陆的用户数目
原文:https://www.cnblogs.com/dakewei/p/9842673.html