CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 48: XK0-004: CompTIA Linux+

Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text edito…

Nội dung câu hỏi

Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text editor says that the read-only option is set on the file. Ann checks the permissions on the file and sees the following:-rw-rw-r-- 1 root wheel 30 Jun 13 15:38 infrastructure.ymlWhich of the following commands is the BEST option to allow her to successfully modify the file?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. chmod 600 infrastructure.yml
  2. B. chown root: infrastructure.yml
  3. C. chattr -i infrastructure.yml
  4. D. chmod o+w infrastructure.yml — đáp án hiện tại

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề