Difference between logname and $LOGNAME
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.