I'm stuck in a login loop now. What I did was edited /etc/profile
as root and added the following line:
export PATH = /opt/my jdk 7 path/bin:$PATH
After logging out and trying to login, I cannot, so I have tried booting in recovery mode, entering the root shell editing the file in vi
but it always opens in read only mode and hence cannot be saved.
I just need a way to delete that line and boot into Ubuntu again.