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.

Comments

Popular posts from this blog

How to get Active Transactions and Locks from MySQL

Example of a PAC file