Command
chownExplanation
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.txtRecursive ownership change
chown -R user:group directory/chownchown is used to change the file owner and group. It changes the file owner and group.
Change owner and group
chown user:group file.txtRecursive ownership change
chown -R user:group directory/