Linux Views 4

The Linux chown command

The Linux chown command image 1

 

The chown command is used to change a file’s owner and owning group.

Only the system’s superuser, root, can use it.

chown [option] [owner].[group] [file]

※If you omit the group, only the owner is changed

 Option  Description 
 -c  Shows only the files that changed, in detail.  
 -f   Does not show error messages.
 -v  Shows the work status in detail.
 -R  Changes paths underneath as well.

Command examples

The Linux chown command image 2

Reactions

Comments 0

A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.

Comments appear after a review. The password is used again to edit or delete.