1
How can I get the OS X username using bash. The one that is displayed in the Finder UI for example.
For me it's Clément
but when I run whoami
or echo $USER
I got clement
which is the username that is used in a lower level, by the file system for example (/Users/clement
).
Thanks. I accepted your answer over Gordon Davisson's one because it is the simplest. – Cl00e9ment – 2019-11-18T20:57:36.760
Neat; it looks like this option was added in Yosemite (version 10.10) (after I'd last looked at that man page). I'll leave my answer, since it still works & is needed on older versions. – Gordon Davisson – 2019-11-18T22:06:45.567