${LOGNAME} vs. ${USER}
Tom H
tomh0665 at gmail.com
Thu Jul 30 09:54:02 UTC 2015
On Sun, Jul 12, 2015 at 5:32 AM, Johnny Rosenberg
<gurus.knugum at gmail.com> wrote:
>
> Which is the correct path for my SD card ”H6_SD”?
> "/media/${LOGNAME}/H6_SD"
> or
> "/media/${USER}/H6_SD"?
>
> In my case, both ${LOGNAME} and ${USER} happens to be the same, so both
> work, but I guess that's not always true, is it?
They're set to tbe the same by login. LOGNAME is a SYSV variable and
USER is BSD variable but they're both set on Ubuntu and FreeBSD.
More information about the ubuntu-users
mailing list