I wanted to add a path so that the system could find some manually installed executable. However, instead of typing
PATH=xxx:$PATH;export PATH at the end of ~/.profile where xxx is the directory in which the executable lies, I wrongly used
After I logged out I was unable to log in the usual way. How can I fix this instead of reinstalling?