linux 如何查看所有的用户和组信息

cat /etc/passwd 

查看所有的用户信息,详情如下图

 cat /etc/passwd|grep   用户名 

用于查找某个用户

 cat /etc/group 

查看所有组信息