/usr/ucb/whoami
Print the effective username. This is usually the same as the standard SVR4 command logname. However, when you're running an su session as another user, whoami displays this user's name, but logname still displays your name.