How do I get the name of the active user via the command line in OS X?
If you'd like to display the full name (instead of the username), add the -F flag:
-F
$ id -F Andrew Havens