Commands are available in the following places [duplicate]

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?

4

1 Answer

I have forgotten to add :$PATH at the end of the line in ~/.bashrc. Adding it solved my problem. Before edit, it was like export PATH="/storage/IntelFPGA/q18.1/quartus/bin".

1

You Might Also Like