nerdexam
LPI

101-400 · Question #228

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

The correct answer is D. chown dave:staff data.txt. See the full explanation below for the reasoning.

Question

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

Options

  • Achown dave/staff data.txt
  • Bchown -u dave -g staff data.txt
  • Cchown -user dave -group staff data.txt
  • Dchown dave:staff data.txt

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    3% (1)
  • D
    83% (24)

Community Discussion

No community discussion yet for this question.

Full 101-400 Practice