Reputation: 21
I was trying to add conda into my path. But after I added
export PATH="/data1/neyozhyang/anaconda3/bin/conda"
to my .bash_profile
I can not use most of the commands like ls
anymore.
It is a linux server.
echo $PATH
gives me /data1/neyozhyang/anaconda3/bin/conda
while echo $HOME
gives me /data1/neyozhyang
Upvotes: 0
Views: 542
Reputation: 247210
This might help you get back on your feet (although you don't specify your OS)
PATH=$(/usr/bin/getconf PATH)
That gives you something like /usr/bin:/bin:/usr/sbin:/sbin
so you should be able to access the base utilities.
Upvotes: 1
Reputation: 540
You can choose an editor by it's full path and open ~/.bash_profile.
$ /usr/bin/vim ~/.bash_profile
$ /usr/bin/nano ~/.bash_profile
$ /usr/bin/emacs ~/.bash_profile
And modify the PATH line:
export PATH="/data1/neyozhyang/anaconda3/bin/conda:$PATH"
Upvotes: 2