How do I change a read only file in Linux VI?

How do I change a read only file in Linux VI?
Answer
How to open a file in readonly mode:
  1. Use view command within vim. The syntax is: view {file-name}
  2. Use vim/vi command line option. The syntax is: vim -R {file-name}
  3. Modifications not allowed using command line option: The syntax is: vim -M {file-name}
 

Tìm kiếm

Back
Top