nerdexam
LPI

101-350 · Question #120

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

(22 responses)
  • A
    5% (1)
  • B
    9% (2)
  • C
    5% (1)
  • D
    82% (18)

Community Discussion

No community discussion yet for this question.

Full 101-350 Practice