How to login after modifying ~/.profile wrongly

Posted by Jasper Loy on Ask Ubuntu See other posts from Ask Ubuntu or by Jasper Loy
Published on 2011-01-02T07:39:37Z Indexed on 2011/01/02 7:58 UTC
Read the original article Hit count: 234

Filed under:

I did something very silly a few weeks ago. I wanted to add a path so that the OS could find some manually installed executable. Instead of typing 'PATH=xxx:$PATH;export PATH' at the end of the ~/.profile file where xxx is the directory in which the executable lies, I accidentally typed 'PATH=xxx;export PATH'. After I logged out I was unable to login anymore as I probably messed up the whole PATH variable and reinstalled the whole thing. My question is: is there a way of rectifying the situation if I happen to add the path wrongly (hopefully not!) in future?

© Ask Ubuntu or respective owner

Related posts about paths