Say for example you have a directory named ~/bin that you want to keep all your personal apps and scripts in. You can change your PATH setting at the shell simply with the command
prompt$ PATH="$PATH:$HOME/bin"
That will take the current $PATH value and add your ~/bin directory to it. If you want to make this permanent, edit your ~/.bash_profile and put in the line
Code:
export PATH="$PATH:$HOME/bin"
Either logout and back in again or 'source' the .bash_profile file to read in the new configuration. It will be automatically set from then on when you login.
To make a file executable, simply change it's permissions like so:
prompt$ chmod +x filename.sh
Use the command 'man chmod' for more information on changing permissions.