nerdexam
ExamsXK0-004Questions#214
CompTIA

XK0-004 · Question #214

XK0-004 Question #214: Real Exam Question with Answer & Explanation

The correct answer is A: chmod -R 400 /new_directory/. Read = 4, Write = 2, Execute = 1 Therefore the directory would need to be 400 and need to be recursive with the -R option.

Question

A Linux user wants to give read-only permissions to a directory and its contents. Which of the following commands will allow the user to accomplish this task?

Options

  • Achmod -R 400 /new_directory/
  • Bchmod -R 600 /new_directory/
  • Cchmod 400 /new_directory/
  • Dchmod 600 /new_directory/

Explanation

Read = 4, Write = 2, Execute = 1 Therefore the directory would need to be 400 and need to be recursive with the -R option.

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice