Ubuntu: How to set $PATH in Ubuntu


I want to work with Zettair search engine (see link). I installed it on Ubuntu 14.04, but I cannot install the Zettair executable in my PATH with following command. What should I do?

PATH=/usr/local/zettair/bin/zet:$PATH  export PATH=$PATH:/usr/local/zettair/bin/zet  

The following codes work for the folder I run them. Therefore, by changing the folder I got the error again.

PATH=$PATH:/usr/local/zettair/bin/zet  export PATH  


It seems you have included the file name in the path, which is wrong. The PATH must contain the directory that in turn contains the executable you want to run, not the executable itself.

Use this:

export PATH=$PATH:/usr/local/zettair/bin  

This will work for the running session and all child processes only, you can make it permanent by adding it to your ~/.bashrc file:

echo 'export PATH=$PATH:/usr/local/zettair/bin' >> ~/.bashrc  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »