dwyl/learn-devops

Get List of users on Linux/Unix VPS/VM Instance

nelsonic opened this issue · 0 comments

What is the command to get the the list of users on a Linux Virtual Machine (VM) instance?

aparently:

getent passwd

Not a very descriptive command ...
basically getent is "get entries" https://en.wikipedia.org/wiki/Getent
in the passwd file which contains a list of all the users.

via: https://askubuntu.com/questions/410244/a-command-to-list-all-users-and-how-to-add-delete-modify-users