id root 就可以查看 root 用户的uid号 想查那个用户就打 id 用户名
cat /etc/passwd |awk -F ":" '{print "用户名:"$1, " UID:" $3}'
如上命令输入所有用户名 和 用户ID
如图