The main approach to modify your path is:
Code:
PATH=$PATH:$HOME/bin:/your/new/path
export PATH
And replace /your/new/path with what you are going to add.
An other approach is the following: you could create a symlink in a dir that already sits in your path, like /usr/bin.
Use:
$ ln -s /your/new/path/your_program /usr/bin/your_program
And check it by saying:
$ ln -l /usr/bin/your_program
This is what I get with e.g. sh:
Code:
ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Sep 5 11:40 /bin/sh -> bash*