Crmgo Blog

Users and Groups in Linux

Users and Groups in Linux

View all users: `cat /etc/passwd | grep :10[0-9][0-9]: | cut -d: -f1` View groups: `cat /etc/group` View which groups the user `user` belongs to: `group user`

Users and Groups in Linux

view all users:

cat /etc/passwd | grep :10[0-9][0-9]: | cut -d: -f1

view groups:

cat /etc/group

view which groups the user 'user' belongs to:

group user

Note: This post may be AI-assisted and then human-edited. Editorial responsibility: Dmytro Lomaka, Kaltenkirchen.