How to list all users and groups on Linux?
And what's the difference between user:root
and user:othergroup
?
How to list all users and groups on Linux?
And what's the difference between user:root
and user:othergroup
?
user:root
is a combination of user user
and group root
. user:othergroup
is a combination of user user
and group othergroup
.
From the commandline, simply look at the files /etc/passwd
and /etc/group
. The information you look for is in the first column.