Linux: How To Add To Path
We are going to assume that you are using the BASH shell.
Show your current path like this:
echo $PATH
Add a directory to your existing path like this:
export PATH=$PATH:/home/test
If you want your path to stay set after you exit your current shell you should add it to your .bashrc file like this.
vi ~/.bashrcexport PATH=$PATH:/home/test