CompTIA
LX0-101 · Question #268
Using vi, you want to save changes to the file my file with :w!, but vi complains it cannot write to the file. Therefore, you want to check the write permissions on the file. To do this without…
The correct answer is A. :!ls-I myfile. See the full explanation below for the reasoning.
Question
Using vi, you want to save changes to the file my file with :w!, but vi complains it cannot write to the file. Therefore, you want to check the write permissions on the file. To do this without leaving vi, you type:
Options
- A:!ls-I myfile
- B:\ls-l myfile
- Cesc :Is -I myfile
- D:?ls-l myfile
How the community answered
(55 responses)- A73% (40)
- B4% (2)
- C7% (4)
- D16% (9)
Community Discussion
No community discussion yet for this question.