I have created a directory in my home directory called shellprogs to serve as a repository for my shell programs. In order to execute these programs without having to specify an absolute path, I have updated my path in .profile to include the following line:
This adds /home/martyp/shellprogs to my path assuming colon is the delimiter, which is usually the case. After updating .profile you can log out and log in to update your path. You can issue the command below to confirm that your path has indeed been updated to include the directory in which you keep your shell programs:
martyp $ echo $PATH /usr/bin:/usr/ucb:/etc:.:/home/martyp/shellprogs martyp $
Let's now go to the shellprogs directory ...