I could grep through /etc/passwd but that seems onerous. \'finger\' isn\'t installed and I\'d like to avoid that dependency. This is for a program so it would be nice if there
Combination of other answers, tested on minimal Debian/Ubuntu installations:
getent passwd `whoami` | cut -d ':' -f 5 | cut -d ',' -f 1