The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-14-2003
Flyguy Flyguy is offline
Registered User
  
 

Join Date: Nov 2003
Posts: 2
Making files readonly with vi?

Hi,

I'm new at this whole Unix thing, but definately learning (lots of fun)...

and I was wondering - how do you make a file read-only with vi? I don't mean how do you load up vi in read-only mode, but how do you save a file (or flag a file, or whatever) in vi to read-only? How do you make it not read-only after it has been set to read-only? Thanks a lot!