nerdexam
Exams010-160Questions#75
LPI

010-160 · Question #75

010-160 Question #75: Real Exam Question with Answer & Explanation

The correct answer is C: chown tux doku.odt. This question tests knowledge of the correct Linux command used to change the ownership of a file.

Question

The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?

Options

  • Achmod u=tux doku.odt
  • Bnewuser tux doku.odt
  • Cchown tux doku.odt
  • Dtransfer tux: doku.odt
  • Epasswd doku.odt:tux

Explanation

This question tests knowledge of the correct Linux command used to change the ownership of a file.

Common mistakes.

  • A. chmod modifies file permission bits (read, write, execute), not ownership - 'u=tux' is not valid chmod syntax.
  • B. 'newuser' is not a standard Linux command; useradd/adduser create new user accounts and have no function for changing file ownership.
  • D. 'transfer' is not a valid Linux command; no such utility exists for reassigning file ownership.
  • E. passwd is used to change user account passwords and has no capability to modify file ownership.

Concept tested. Linux chown command for changing file ownership

Reference. https://man7.org/linux/man-pages/man1/chown.1.html

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice