Settings Option

So, seems I have lost the settings options due, and I am going to stick to this story, a large lack of coffee.

I like to remove it from the homepage and then have it enabled on the Quit menu. Seems I did not manage to add it to the quit Menu and am now stuck..

Does anyone know what file (and location) I can manually edit via SSH to revert my UI to allow me to get back to settings?

Thanks!