I want to display:
All users and
All groups
in my system using command-line.
users
and groups
commands display users currently logged in, and groups a user belongs to respectively.
How to display a list of all users and all groups by command-line?