Which command is used to change the ownership of a file?

Quang Hiếu

New member
Which command is used to change the ownership of a file?
A. chmod
B. change
C. ch
D. chown
 
Answer: d
Explanation: For changing the file ownership, we use the chown command. chown transfer the ownership of a file to another user. The command requires the user-ID (UID) of the recipient. To change the ownership of a file from user01 to user02, use the following commands:
Code:
 

Tìm kiếm

Back
Top