That should allow you to edit any file. Your prompt will now be a # instead of a $.
When finished, type in "exit".
Still struggling here.
I’ve got the sudo thing. I’ve been able to edit the hosts file. Or I think I have. After using gedit (started from terminal) to edit the file, I issue =cat hosts= and the file types out just the way I expect it to. But whenever I restart the system, which I’ve unfortunately had to do many times, the hosts file reverts to the original. (I’ve done nothing but restart and open a terminal and go =cat hosts= and my changes are always gone.) I also once put a copy of the edited file on my desktop, and it was gone after a restart. Something always seems to go wrong after I change the hosts file so I cannot even get to try to download my utilities. Usually windows start greying and then things start disappearing. It appears that something is trying to recreate the disappeared stuff, but whenever it does things are missing (like my internet connection). I thought this was going to be easy!