${LOGNAME} vs. ${USER}
Colin Law
clanlaw at gmail.com
Sun Jul 12 14:26:56 UTC 2015
On 12 July 2015 at 14:03, Johnny Rosenberg <gurus.knugum at gmail.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”…?
Of course you can, it is only an environment variable. It might mess
up stuff though, so do so at your own peril. I suppose there is a
small probability of someone having a good reason to change it, hence
the probably.
Colin
More information about the ubuntu-users
mailing list