unix - Export PATH in terminal -


every time need add new path in bash_profile append old path using like

path=$path:..... 

then export path @ end.

if wanted add path , left out above , created new path, reset path new path?

if exported path before new path not reach new path?

~]$ export path=/bin ~]$ echo $path /bin  ~]$ export path=${path}:/usr/bin:/usr/sbin ~]$ echo $path /bin:/usr/bin:/usr/sbin  ~]$ export path=/usr/local/bin ~]$ echo $path /usr/local/bin 

Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -