//Tips tagged sudo
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
I often open a file and start editing only to realize later that I don't have write permissions when I get the old "E212: Can't open file for writing" error.

The vim command below can be user to save the file without the need to save it to a temp file and then copy it back again.

:w !sudo tee %


View Comments »



Get DVDs playing on Ubuntu Gutsy by installing libdvdcss2.


echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list echo "deb-src http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O - | sudo apt-key add - && sudo apt-get update sudo apt-get install libdvdcss2


View Comments »




Home Latest Browse Top 25 Random Hall Of Fame Contact Submit