1. 程式人生 > >linux下查看當前登陸的用戶數目

linux下查看當前登陸的用戶數目

登陸 pri 輸入 linu bsp code print who uniq

在shell下輸入以下語句即可獲取:

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

linux下查看當前登陸的用戶數目