To list the user accounts on an Apple Mac using Terminal:

  1. Open Terminal
  2. Type in the following command
    dscl . list /Users | grep -v “^_”
  3. 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