Question:
i hav fedora 7,in vi editor i am not able to save and quit files?
anonymous
2007-11-16 08:24:38 UTC
it gives error ssaying cant open this file for writing.........perl,html etc i'm not able to execute...in fact first point is cant save only..........plzzzzzz help
Four answers:
J P
2007-11-16 08:37:25 UTC
When using vi or emacs you have to open the file for writing with a command extension (usually -w or something like that) otherwise it's a read only copy of the file. Do a man vi from a command line to find out about opening the file for writing.
photog_35
2007-11-16 16:36:49 UTC
Check your permissions. You need write access. Possibley one of two things is happening.



1. You are the owner and it is a read only file.

2. Your are not the owner and you don't have write access.



With the command : ls -l

check your access : rwxrwxrwx



The first group is owner, second is for group, and the third group is all else.



If it is not set correctly use : chmod

to change access (if you are owner), if not, have the owner change it so you can access it in write mode.
Yogesh P H
2007-11-16 20:24:25 UTC
Dude, let me tell u whenu get that error juz give this



!wq;



Everything will go proper.
martinthurn
2007-11-16 20:15:13 UTC
Also, check to make sure your disk is not full



df -k


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...