Save as super user

matrushka 13 years ago updated by Jon Skinner 12 years ago 2
I am using Mac OS X 10.6.8 and
i want to edit my /etc/hosts file via command line. I start by typing:
sudo subl /etc/hostsSublime opens normally with my hosts file on screen yet when i try to save it is says unable to save.

This works perfectly when i do:
sudo mate /etc/hostswith textmate.

This is one of the few stuff preventing me from switching to sublime text completely. I hope this gets fixed as soon as it can so i can skip installing textmate after Lion upgrade.


Added in 2165