PATH should be added where

PATH, LD_LIBRARY_PATH, etc. should be added in the .profile / .bashr_profile, rather than under .bashrc.

Because .bashrc is only valid for the current shell program and any other program will not read the file variable.

https://unix.stackexchange.com/questions/26047/how-to-correctly-add-a-path-to-path

Guess you like

Origin www.cnblogs.com/simpleminds/p/12653800.html