How do I find the full name of a user in Linux?
Linux distributions normally display the username of the current user in the Terminal as (Username)@ComputerName. If your Linux distribution doesn't, run "who" or "whoami" in the Terminal to get the username instead.
How do I print a user name in Unix?
You can display or print the name of the current user (also know as calling user) using logname command. This command reads var/run/utmp or /etc/utmp file to display the name of the current user.