On 1 Dec 2008, at 18:47, Conor Mac Aoidh wrote:
>> This is my first time sending an ilug email. I am pretty much a
> newbe to linux. I just had a question as to using the VIM command. I
> trying to use this to create a new file in a new directory. It keeps
> returning the error "E212: Can't open file for writing" and after
> the error it turns out that I do not have enough privilages to do
> what I
> want to do. I am logged in as root. Does anyone know how I can get the
> privileges that I need? Or can anyone recommend another method of
> what I want do do - as i'm not sure if VIM should even be used for
I suspect you may need to use the SUDO command or SU to root as the
are editing might belong to the super user....root
sudo vim /path/to/the/file
You will be asked for your root password. When your finished editing
save it and quit vim and then type
to return to your user shell.
VIM is a tough program to get into but nearly all linux distros has it
So if you learn it you can edit files on most systems, very handy!
But if you
will only be looking after your computer then maybe something like
be better suited to your needs!
I hope this helps you.
ps enjoy reinstalling your system......
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!