${LOGNAME} vs. ${USER}
Robert Heller
heller at deepsoft.com
Sun Jul 12 15:11:11 UTC 2015
At Sun, 12 Jul 2015 15:03:33 +0200 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
>
>
> 2015-07-12 14:49 GMT+02:00 Colin Law <clanlaw at gmail.com>:
>
> > On 12 July 2015 at 13:32, 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?
> >
> > I think https://help.ubuntu.com/community/EnvironmentVariables
> > suggests they are both the same. Though why it uses the word
> > 'similar' rather than something less ambiguous I don't know. I always
> > use USER.
> >
> > Colin
> >
> >
> And it also says, about USER: ”You probably shouldn't change its value
> manually”
> Can I change it or not…? Not that I'd ever want to, but ”probably”…?
You can always change it -- environment variables cannot be 'write protected'.
OTOH, changing it will likely break things that depend on it being set
correctly. There might be very special reasons to change it, but generally you
should not, unless you *really* know what you are doing and have one of those
'special' reasons to change it. Generally speaking most environment variables
are set by by some system thing to reflect some aspect of the running
environment (like currently logged in user in this case). You should generally
leave these things alone.
>
>
> Johnny Rosenberg
>
>
> > >
> > >
> > > Kind regards
> > >
> > > Johnny Rosenberg
> > >
> ¸
> §
>
> ¼
> »
>
> ¼
> ¼
> ³
>
> ¼
> °
> > >
> > >
> > > --
> > > ubuntu-users mailing list
> > > ubuntu-users at lists.ubuntu.com
> > > Modify settings or unsubscribe at:
> > > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> > >
> >
> > --
> > ubuntu-users mailing list
> > ubuntu-users at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
> >
> MIME-Version: 1.0
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller at deepsoft.com -- Webhosting Services
More information about the ubuntu-users
mailing list