Every time I close my terminal and reopen it, simples command(e.g. ls) doesn't work. It shows the following error,
irfan@irfan-Y500-Elementery:~$ ls Command 'ls' is available in '/bin/ls' The command could not be located because '/bin' is not included in the PATH environment variable. ls: command not found
I have to execute the following command
export PATH=/usr/bin:/bin every time to correct this error,
irfan@irfan-Y500-Elementery:~$ export PATH=/usr/bin:/bin irfan@irfan-Y500-Elementery:~$ ls Assets Documents Example.java Music Public Videos Blender Downloads export output.pdf sudo Desktop Elementary Luna jmonkeyplatform Pictures Templates
My questions is, why I have to do it every time? and what do I have to do to solve the repetition.
My /etc/environment files contains the following,
Note : I am using ElementaryOS(based on Ubuntu 12.04)
echo $PATH returns
I followed this answer to set java path.
PATH=/usr/local/jre1.7.0_51/bin: export PATH
to my /home/irfan/.bashrc file. I guess this caused the problem