Ngô Thảo Trúc
Member
How do I change a read only file in Linux VI?
Answer
How to open a file in readonly mode:
Answer
How to open a file in readonly mode:
- Use view command within vim. The syntax is: view {file-name}
- Use vim/vi command line option. The syntax is: vim -R {file-name}
- Modifications not allowed using command line option: The syntax is: vim -M {file-name}