I'm running RHEL 7.4 with bash shell and GNOME Terminal and am trying to figure out why LD_LIBRARY_PATH
contains paths to certain directories. I removed ~/.bashrc
and ~/.bash_profile
but after restarting the terminal I find that LD_LIBRARY_PATH
is still populated.
More peculiar is that LD_LIBRARY_PATH
contains paths to locations which I've created like /home/jodag/my_local/lib
. I thought deleting .bashrc
would stop these values from being loaded but it hasn't.
Is there a way to list all the scripts being executed when the terminal starts, or possibly some other way to track down what is setting my LD_LIBRARY_PATH
environment variable?
LD_LIBRARY_PATH
set and this gets inherited bybash
when you start it?~/.bash_profile
I found that it was executing~/.bashrc
which meant that~/.bashrc
was being executed twice, once on log-in and once when the terminal started.