Closed.
]]>$ sudoedit /etc/myconf.cfg
man sudo and look for the -e option (they're synonyms).
If you're using a GUI, then see also the askpass stuff in the same man page. Might be how gksudo works, don't know as don't have it.
C'mon... You could of easily found this on Google.
sudo nano <file>
I'm just assuming nano would be easier for you. You could use vim. gedit, or whatever other editor you want.
I'm not really sure why but when I tried to open it in nano it gave me a completely different file instead of the one I was trying to open with Leafpad.
]]>Open the file as the root user. If you have the "sudo" command installed
sudo <your editor of choice> <file you are trying to edit>
Otherwise, you'll have to log in as the root user and open the file from there.
I managed to open it in root with leafpad and save it.Thanks
]]>sudo nano <file>
I'm just assuming nano would be easier for you. You could use vim. gedit, or whatever other editor you want.
]]> sudo <your editor of choice> <file you are trying to edit>
Otherwise, you'll have to log in as the root user and open the file from there.
]]>