How to set $PATH in Ubuntu
Solution 1:
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