When I execute a command on the terminal:
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
I added in the files: .bashrc, etc/enviroment, .profile and .bash_profile the line:
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
The error still persists.
When I run the command echo $PATH only show:
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java:/usr/bin
I found this Java PATH in .bashrc.
I was able to use SUDO and other commands by entering:
export PATH=$PATH:/usr/bin
But it is not permanent.
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java
?