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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -