I do not know why this happened but when I enter a command from terminal for example gedit ~/.bashrc
I get the following error:
Command 'gedit' is available in the following places
* /bin/gedit
* /usr/bin/gedit
The command could not be located because '/bin:/usr/bin' is not included in the PATH environment variable.
gedit: command not found
This happens for also cat, shutdown command etc. How can I solve it?
PATH
variable has been changed. What is the result ofecho $PATH
? – schrodingerscatcuriosity Feb 26 '21 at 08:48.bashrc
at some point changing the variablePATH
? – schrodingerscatcuriosity Feb 26 '21 at 08:53echo $PATH
is/storage/IntelFPGA/q18.1/quartus/bin
. Yes, I have edited.bashrc
and add somePATH
. Is this the cause of the problem? How can I add my path variables permanently instead of editing.bashrc
? – efe373 Feb 26 '21 at 09:05.bashrc
that modifiesPATH
. Apparently you replaced the value ofPATH
instead of appending/prepending to it. (Until this is fixed, you can run/usr/bin/gedit ~/.bashrc
.) – Bodo Feb 26 '21 at 09:15