Dr. S K Singhal
Dr. S K Singhal

Reputation: 21

Messed up path in centOS

I'm a Linux noob. By mistake, I ran :

export PATH=/root/anaconda3/bin

I figure I have changed the value of "PATH" by not using '$PATH:'. Now everytime I press enter, it says sed not installed. I can't even get into sudo anymore.


echo $PATH

still shows -

:/home/adi/bin:/home/adi/bin

Upvotes: 0

Views: 38

Answers (1)

PaulProgrammer
PaulProgrammer

Reputation: 17620

Unless you put this change into your .bash_profile or .bashrc file, it will not persist the next time you log in. Just log out and log back in and all shall be right with the world.

Upvotes: 1

Related Questions