Add directory to system path in Linux
PATH="$PATH:/new/path";export PATH
Since the pathnames are searched in order, you probably want to add your new path at the end of the variable as we've done here. Instead, if you typed:
PATH=/my/new/path:$PATH
Your new path would be searched before, not after, the default system paths.
PATH=/my/new/path:$PATH
Your new path would be searched before, not after, the default system paths.
Comments
Post a Comment