command line - Where is PATH setup in Ubuntu 16.10 bash shell? - Ask Ubuntu


i can't seem determine bash path environment variable getting setup on fresh ubuntu 16.10 install.

i have tried placing echo $path statements @ top of ~/.bashrc , /etc/bash.bashrc. both echo statements executed, these files loading properly, but, in both cases path contains following:

/home/carl/bin:/home/carl/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 

the first entries (/home/carl/bin:/home/carl/.local/bin) i'm trying track down. i'm not sure of values set since changing /etc/environment seems have no effect.

the path setup when /etc/profile executes when using login shell , unaffected changes /etc/environment.

turns out path being persisted display manager loading ~/.profile, (and /etc/profile , /etc/environment) when creating desktop session. means changes files aren't going reflect in new bash sessions , require logging out take effect.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User