Linux Essentials (010-160) — Question 59
The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?
Answer options
- A. chmod u=tux doku.odt
- B. newuser doku.odt tux
- C. chown tux doku.odt
- D. transfer tux: doku.odt
- E. passwd doku.odt:tux
Correct answer: C
Explanation
The correct command to change the ownership of a file is 'chown tux doku.odt', which directly assigns the ownership to user tux. The other options are incorrect because 'chmod' changes permissions, 'newuser' is not a standard command for changing file ownership, 'transfer' is not a valid command, and 'passwd' is used for changing user passwords, not file ownership.