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

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

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

 

posted @ 2018-10-24 11:42  Jello  阅读(4143)  评论(0编辑  收藏  举报