You try to write your file, but you get one of the following messages:
exists - use w!
File is read only
to overwrite the existing file, or type
to save the edited version in a new file.
You want to write a file, but you don't have write permission for
it. You get the message "Permission denied."
to write out the buffer into a new file.
If you have write permission for the directory, you can use
to replace the original version with your copy of it.
If you don't have write permission for the directory,
write out the buffer to a directory in which you do have write
permission (such as your home directory, or /tmp
You try to write your file, but you get a message telling you that
the file system is full.
a (large) unneeded file and
free some space.
(Starting an ex
command with an exclamation point gives you
access to UNIX.)
to see whether there's any space on another file system.
If there is, choose a directory on that file system and write your
file to it with
is the UNIX command to check a
The system puts you into open mode and tells you that the
file system is full.
The disk with vi
temporary files is filled up. Type
to see whether there are any files you can remove to
gain some disk space.[
If there are, create a temporary UNIX shell from which you can remove files or issue
other UNIX commands.
You can create a shell by typing
to terminate the shell and return to vi
most UNIX systems, when using a job-control shell, you can simply type
to suspend vi
and return to the UNIX prompt;
to return to
Once you've freed up some space, write your file with
You try to write your file, but you get a message telling you that your
disk quota has been reached.
Try to force the system to save your buffer with the ex
If that doesn't work, look for some files to remove.
if you are using a job-control system) to move out of vi
) to return to vi
when you're done.
Then write your file with