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

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

who | awk '{print $1}' | sort | uniq | wc -l