nerdexam
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)
  • A
    73% (40)
  • B
    4% (2)
  • C
    7% (4)
  • D
    16% (9)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice