0

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):

  1. export PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin
  2. exportPATH=/usr/bin:/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
  3. export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
  4. 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.

abu_bua
  • 10,783

1 Answers1

0

When you are using Bash-Shell you should define the PATH Variables the following way in your .bashrc:

PATH="/bin:/usr/bin/: and other paths:$PATH"

Print the Path env-varibale

printenv PATH

So that we can see what happens.

abu_bua
  • 10,783