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
Blog
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`

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.
Essential cookies are always active. Statistics, external fonts and marketing load only with your consent (GDPR).
Language, session, consent storage
Anonymous visit analytics
Google Fonts and other CDNs
Advertising pixels and trackers
Scan to open this site quickly on your phone