on trying to configurate go programming language i messed up my PATH in linux. I can not do any commands without specifing the path:
frede@frede-Lenovo-V110-15ISK:~$ 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
frede@frede-Lenovo-V110-15ISK:~$ echo $PATH
/home/frede/bin:/home/frede/.local/bin:PATH:/home/frede/go/bin
However I can run it with the specified path. I tried to solve this problem at looking at similar threads, but I just couldn't find the solution for me. Can you please help me?
UPDATE
frede@frede-Lenovo-V110-15ISK:~$ grep 'PATH=' ~/.profile ~/.bashrc ~/.bash_profile /etc/profile
/home/frede/.profile:PATH="$HOME/bin:$HOME/.local/bin:$PATH"
/home/frede/.bashrc:export GOPATH=/home/frede/go
/home/frede/.bashrc:export PATH=PATH:/home/frede/go/bin
grep: /home/frede/.bash_profile: No such file or directory
LC_ALL=C ls
, that will give you English error messages; ii) show us the output ofgrep 'PATH=' ~/.profile ~/.bashrc ~/.bash_profile /etc/profile
. – terdon Mar 12 '18 at 11:15export PATH=PATH:/home/frede/go/bin
in your/home/frede/.bashrc
file intoexport PATH="$PATH":/home/frede/go/bin
. – Mar 12 '18 at 11:51