How do I get the name of the active user via the command line in OS X?
getting username in MAC terminal is easy...
I generally use whoami in terminal...
whoami
For example, in this case, I needed that to install Tomcat Server...