What is the command in Terminal to list all users on a Mac

October 17, 2016 at 15:07:52
Specs: IOS, .../lots...
I have a Macbook Pro - running el capitan.

I have one user account that will not login; it pinwheels.. This happened after installing a download - possibly even two at the same time. The system simply never completed the update(s) and in effect pinwheeled never returning to the desktop. If it dod complete said update(s) it as previous, it just pinwheeled interminably.

I did a force shut down; press and hold on/off until system shuts down. This account will not login; it just pinwheels and never completes to login process... Other accounts on the Macbook will login OK. All accounts are Admin level...

I intend to delete the account - but ave the account's files (data etc.); and then recreate it exactly. As there appears to be two user names in Mac systems - one long and one short - created when one creates a user account, I naturally need to know for sure the actual account name - before I delete it via users...

I seem to recall there is a command to run in Terminal which display "all" user accounts details. However I can't remember what it is - nor have I managed to find it on the web...

Can someone tell me what that command is; and also - if possible - is there a tutorial or whatever on the web related to Terminal and it's commands and usage?

Mac OS being essentially a modified Unix I know some of those commands may work; but I don't know much re' Unix nor, again, any resources re' its commands etc...

I have in the meantime enabled root access - specific login; and can access the files for the defunct user account. And of course I can copy them flash drives, and CD/DVD. But would like to be able to regenerate/recreate a working user account of the same name and then regain access to all if its files and so on, with its own login.

All replies and suggestions much appreciated.

See More: What is the command in Terminal to list all users on a Mac

October 17, 2016 at 20:04:09
have you tried these commands:


Report •

November 8, 2016 at 06:20:27
Belated thank you for the response..

I did try that command before posting here but it didn't appear to work.

I think I had a syntax error - likely a missing space or one too many...

So the prompt there was useful nonetheless.

Also I have since found a few sites that cover basic and not so commands as for Mac OSX and also Unix which of course is what Mac OSX is based upon.

Report •
Related Solutions

Ask Question