If you are using the shell in Ubuntu and want to change your $PATH or $HOME variable permanently and not on a per session basis, the easiest way, IMO, is to simply edit ~/.bashrc. Adding the following line to .bashrc will add some directories to your $PATH variable:

‘export PATH=$PATH:/path/to/some/dirs:/path/to/some/more/dirs’