#Linux path variable

1 messages Ā· Page 1 of 1 (latest)

gloomy basin
#

Hi guys can someone teach me how to create system wide path variable on Linux? I can't understand how to do it. For now I've tried concatenating PATH variable in /etc/profiles but it seems it's not working until I type src "/etc/profile" on my shell.
Thanks in advice.

neat widget
gloomy basin
#

I'm currently on Sparky, it's a debian testing derivate.

neat widget
gloomy basin
#

Yes thanks, I need to concatenate global PATH with a custom folder. Is it enough type PATH=PATH:/customfolder/ in /etc/environment?

gloomy basin
#

Ok thanks i'll give a look once I'm at home. Thanks for support šŸ™šŸ»

neat widget
gloomy basin
#

I let you know

gloomy basin
#

Ok I tried and expanding the PATH variable in /etc/environment does not work, in here I need to type all the whole value of the path...
In /etc/profile it was working but only in an login shell.
So I ended up on expanding the PATH variable in /etc/bash.bashrc file, and now it's working like a charm.