I can provide more details later, but this comment might get you going in the right direction (it’s not exactly the same issue, but the underlying mechanisms apply similarly in your case).
Thank-you for the read fperez - but it did not change anything -
yes, i have restarted server even rebooted
There is a configuration somewhere that add “/opt/tljh/user/bin” to the PATH variable
I even ran
root@jupyterhub:/opt/tljh# grep -r “/opt/tljh/user/bin” *
but nothing indicative showed-up
Here’s a trick you can use to debug this… Add an environment variable in each of your startup files (say $RAN_BASHRC in .bashrc, $RAN_BASH_PROFILE in .bash_profile, etc.). Then search for these variables in your environment both via !env grep RAN and in the keys of os.env, and also in a normal terminal.
This will help you pin down exactly which files are getting run in each case… You can then try to organize the layout of your configuration in the files that get loaded…