who

who 查询当前有几个用户
whoami 查询当前登陆用户
su - ar_datas
ps -ef | grep $USER

原文地址:https://www.cnblogs.com/We612/p/11196618.html