Environment Variables

This tutorial will help you set environment variables for a particular user. An excellent example of this is mapping your /home/$user/bin to the $PATH variable, allowing the user to execute scripts from the /home/$user/bin from any terminal. Using the /home/$user/bin method is more convenient during development rather than soley copying files over to the /usr/bin folder. Whenever $user is specified in this tutorial, feel free to replace it with your username.
_________________________________________________________________________________________________________________

First, ensure you have created a bin folder inside of your home folder.

Edit the .bashrc file in your home folder; open a terminal and type the following.

nano .bashrc

Add the following line of code to your .bashrc file; this will map your ~/bin folder to the $PATH variable.