${LOGNAME} vs. ${USER}
Colin Law
clanlaw at gmail.com
Sun Jul 12 12:49:01 UTC 2015
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
>
>
> 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
>
More information about the ubuntu-users
mailing list