Where to put the assignment of global environment variables

Volker Wysk post at volker-wysk.de
Tue Sep 13 05:37:14 UTC 2022


Hi!

I want to do it right. I have global variables (PATH, MANPATH, INFOPATH),
which need to be extended. I've tried it in /etc/environment, but that
didn't have any effect. On the web, I've found the advice to put it in a
script in /etc/profile.d, but there it gets evaluated *multiple* times.

Is that normal? Or where's the intended place for those environment
variables?

Cheers, Volker




More information about the ubuntu-users mailing list