linux下查看当前登陆的用户数目

在shell下输入以下语句即可获取:

who | awk '{print $1}' | sort | uniq | wc -l
原文地址:https://www.cnblogs.com/dakewei/p/9842673.html