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?
PATHvariable has been changed. What is the result ofecho $PATH? – schrodingerscatcuriosity Feb 26 '21 at 08:48.bashrcat some point changing the variablePATH? – schrodingerscatcuriosity Feb 26 '21 at 08:53echo $PATHis/storage/IntelFPGA/q18.1/quartus/bin. Yes, I have edited.bashrcand 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.bashrcthat modifiesPATH. Apparently you replaced the value ofPATHinstead of appending/prepending to it. (Until this is fixed, you can run/usr/bin/gedit ~/.bashrc.) – Bodo Feb 26 '21 at 09:15