[Nottingham] Grub quickie help please
Graeme Fowler
graeme at graemef.net
Fri Mar 17 09:45:20 GMT 2006
On 16/03/2006 20:38, sparkes wrote:
> I concur with Michael, the sudo renders the ! unneeded at least my
> experience.
The bang is required for the 'w' command if the file doesn't have the
'w' bit set. Try it as any "normal" user - and then try to edit/write
the same file as root:
touch file
chmod 0100 file
vi file
and see what happens.
The "x" command is convenient shorthand for ":wq" (although writing only
occurs if changes have been made). Even that needs a bang on the end if
the file is read-only.
Graeme
More information about the Nottingham
mailing list