To list the user accounts on an Apple Mac using Terminal:
- Open Terminal
- Type in the following command
dscl . list /Users | grep -v “^_”
- You will be presented with a list of User accounts set up on the Mac.
Note: You will be presented with a few accounts additionally which you can ignore such as nobody, root, daemon