l have trouble with my PATH variable:
each time l run command like pip, bash, mkdir ..
for instance
The command could not be located because '/bin' is not included in the PATH environment variable.
bash: command not found
other example :
dpkg: warning: 'sh' not found in PATH or not executable
dpkg: warning: 'rm' not found in PATH or not executable
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 5 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
E: Sub-process /usr/bin/dpkg returned an error code (2)
does this command solves the problem ?
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
each time l need to run this command , how to solve that ?
This command:
/bin/grep PATH ~/.bashrc ~/.profile ~/.bash_profile ~/.bash_login /etc/profile /etc/bash.bashrc /etc/environment
returns:
/root/.bashrc:export PATH="/root/anaconda3/bin"
/bin/grep: /root/.bash_profile: No such file or directory
/bin/grep: /root/.bash_login: No such file or directory
/etc/environment:PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
ls -l /bin/bash
? – Romeo Ninov Apr 26 '17 at 08:55/bin/grep PATH ~/.bashrc ~/.profile ~/.bash_profile ~/.bash_login /etc/profile /etc/bash.bashrc /etc/environment
. You have changed your PATH and that will have happened in one of those files. – terdon Apr 26 '17 at 08:59