linux/chown

Change Owner

Change file owner and group

permissions
security

Command

chown

Explanation

chown is used to change the file owner and group. It changes the file owner and group.

Examples

Change owner and group

chown user:group file.txt

Recursive ownership change

chown -R user:group directory/