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
Post a Comment