1.

Which option is used by vi editor to open a file in read mode only?(a) -r(b) -R(c) -d(d) -fThe question was posed to me in an interview.My doubt is from Vi Basics and Modes in portion The Vi Editor of Unix

Answer»

Correct CHOICE is (B) -R

To EXPLAIN: To open an existing file in read-mode only, -R is used with the filename (as an argument). For EXAMPLE,



Discussion

No Comment Found

Related InterviewSolutions