Hi im new to linux. Im trying to install a software and wrote the PATH in the .bashrc file. However, I followed someone elses hand written example (taken from their computer elsewhere) however they left out the $PATH command, for example:
Since then I have lost all my bash commands, ls, vi, su, sudo etc. when I type in echo $PATH I get:
/pathdestination/ (from the above example) but that is it.
I can go to the directory containing the .bashrc file however I can't open it to view using 'vi bashrc' I just get:
bash:vi:command not found
When I try to access using root 'su' or 'su -' I also get
bash:su:command not found
So I'm stuck as to how to modify the .bashrc file. Could someone please help me?
Thanks in advance