Code:
$ cmccabe@HP-Z640-Workstation:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: /usr/local/games:/home/cmccabe/tabix-0.2.6
to add to PATH:
Code:
sudo nano /etc/environment
and add :
export PATH=/bin:/usr/bin:$PATH
export PATH=/bin:/usr/bin:$PATH
export PATH=/bin:/usr/bin:$PATH
Btw, is the above the correct way to add to PATH so that echo $PATH will work to view?
Code:
echo 'export PATH=$PATH:/home/cmccabe/Desktop/ngs_analysis/samtools-1.2' >> ~/.bashrc
would add to PATH so cat ~/.bashrc could be used to view?
What is the difference and when should one be used versus the other or is there a preferred way? Thank you

.
EDIT:
using ubuntu 14.04 and the error started after I uninstalled an application that was not working.