I've edited my .bashrc file because of errors like the one below keeps popping every time I open a terminal.
Command 'ls' is available in '/bin/ls'
The command could not be located because '/bin' is not included in the PATH environment variable.
So far I've tried( in my .bashrc file):
export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
exportPATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
export PATH=$PATH:/usr/bin
still, I've to enter explicitly one of the above-said commands in the terminal every time I open a new one. I'm using Ubuntu 16.04.
Any help will be appreciated.
/bin
. But apparently you have messed up your PATH somehow; on a clean Ubuntu install PATH is set in/etc/environment
. Can you please edit your question and show us whatecho $PATH
outputs. – Gunnar Hjalmarsson Apr 10 '18 at 18:26