Find the answer to your Linux question:
Results 1 to 4 of 4

Thread: Vi issues

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Vi issues

    I was editing a file in vi, the application crashed resulting a reboot of the system and when I go back and try to edit the same file it returns that it is now read only.

    I've deleted the file.swp and the file~ that tend to get created sometime when these things happen. I still am unable to edit the file in question.

    How can I edit this file?

  2. #2
    Linux User
    Join Date
    Jun 2003
    Calgary, AB CANADA
    What are the permissions for that file set to?
    To check, issue an
    ls -l
    on the directory that it's in to see what they are set to. To change them, use the chmod command.

    Hope this helps!
    \"Everything should be made as simple as possible, but not simpler.\"
    Albert Einstein

  3. #3
    The directories were when created set to chmod 0511, i've even trying accessing them as root (super user), vi still states that its read-only. Unfortunately i'll have to do some more research on this issue since i'm currently stuck at work.

    Thanks for any kind of help in this issue.

  4. $spacer_open
  5. #4
    Linux Engineer
    Join Date
    Mar 2003
    If you look here you'll see a short and concise tut on chmod usage.

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts