I changed my ~/.profile and now I can't login.
I'm new to Linux and I was trying to add adb/fastboot (android development tools) to my PATH by editing PATH in .profile. I had done a different method before, but I'm unable to find that method again, and a lot of people tend to recommend editing .profile to add environmental variables to PATH.
Back to the problem. I try to log in, but Linux simply returns "Your session only lasted less than 10 seconds...." and then when I go to see the details, it shows...
syndaemon: no process found /etc/mdm/Xsession: Beginning session setup... /etc/mdm/Xsession: Executing cinnamon-session-cinnamon failed, will try to run x-terminal-emulator /etc/mdm/Xsession: 205: exec: x-terminal-emulator: not found
I'm running 64-bit Linux Mint Cinnamon v17.3
How do I undo the changes to ~/.profile? Or how do I at least login so that I can undo the changes via gedit?