I know there are many questions like this, but I unfortunately dont know enough about Ubuntu to be able to apply it to my situation. I have all my stuff saved for work on a remote machine, that i access via ssh. I was trying to change something with a conda environment i have there, and changed something in the .bashrc file, and now I cant use vim, or ls - no text editor or command seems to work.
echo $PATH
returns:
/home/percyrou/bin:/home/percyrou/bin:/home/user/bin:~/ghf_env/bin/
as far as i remember from the .bashrc file before i accidentally changed it, the PATH was just something like : /home/user/bin:
I think all these extra parts got added because i tried to change it with :
echo 'export PATH="/home/percyrou/bin:$PATH"' >> ~/.bashrc
(or just with user instead of percyrou, because i wasnt sure which it was), and it seems to add it to the PATH rather than replace it. I did already run source ~/.bashrc
i also tried to use scp
to download the .bashrc file to my local machin and edit there, but that also returns bash: scp: command not found
, i guess because scp
is also contained in my .bashrc file.
Please help! I have no idea how to proceed from here to access my path variable again. :(