While reading about environment variables, the one I came across was
LOGNAME, I'd like to know the difference between this variable and whatever the command
logname returns - as both of them did differ in what they returned.
-bash-3.2$ logname user11 -bash-3.2$ echo $LOGNAME user1
whoami returns the same user as
-bash-3.2$ whoami user1