Vi is refusing to save!
Hello everyone!
I have recently installed a command line only version of Ubuntu on a desktop, for the purpose of setting up a Minecraft server. Anyway. I've been trying to edit the interfaces file,for the purpose of giving myself a static IP, using the Vi editor. But, any time I try to save I get this message. "E212: Can't open file for writing." Any help?? |
You probably dont have permission to write the changes. You will have to launch vi using sudo,
Code:
sudo vi /etc/network/interfaces |
Quote:
|
Have you tried this to save it,
Code:
:w !sudo tee % > /dev/null |
can you show ls -l of file
|
Never Mind, I found it out xD
|
vi has two modes the insert and esc mode to save a file you should be in the esc mode the type.
Quote:
|
Quote:
|
Lol at nixblog haha. By the way what did you do if it was not a permissions problem?
|
All times are GMT -5. The time now is 07:38 PM. |