So I wanted to change the name of the home folder, and did so using the mv command:
mv /home/oldname /home/newname. It worked fine. No errors appeared until I tried accessing the home folder. It said it couldn't find /home/oldname (I don't remember the full error).
I though I could fix it easily by editing the passwd file. I searched for passwd within the /etc directory and found a few results. I just double clicked the first result (I know it's stupid) and then the file explorer exited. I couldn't click on anything and nothing was working, so I rebooted the computer. When I came to the login screen, I entered my password and pressed enter. The screen went black for a while, and then returned to the login screen. Basically I can't login my main account, I can only use Guest, which deletes any changes to Ubuntu on exit. If anyone knows how I can edit the passwd file from there or fix it in another way, that'd be great. I know this might be a duplicate, but non of the questions I found were using the same command as me which might make a difference. Also please note that I don't want to rein