exam questions

Exam LX0-103 All Questions

View all questions & answers for the LX0-103 exam

Exam LX0-103 topic 4 question 3 discussion

Actual exam question from CompTIA's LX0-103
Question #: 3
Topic #: 4
[All LX0-103 Questions]

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

  • A. chown dan/staff file.txt
  • B. chown dan:staff file.txt
  • C. chown -u dan -g staff file.txt
  • D. chown dan -g staff file.txt
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
B. chown dan:staff file.txt Here's how this command works: The chown command is used to change the ownership of a file or directory. The dan:staff argument specifies the new owner and group for the file. The user dan is separated from the group staff by a colon (:). The file.txt argument specifies the file to which the ownership should be changed.
upvoted 1 times
...
ant_man
3 years, 7 months ago
B Is OK
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago