How to list all users and groups on Linux?

getent(1)

user:root is a combination of user user and group root. user:othergroup is a combination of user user and group othergroup.