chown
PermissionsChange file owner and group
Options & Flags
Available options for this command
-RChange ownership recursively
-vVerbose output
Examples
Common usage examples
Change file owner to user
chown user file.txtChange owner and group
chown user:group file.txtChange ownership recursively
chown -R www-data:www-data /var/wwwNotes
- Requires root or sudo privileges
- Format: chown user:group file
Related Commands
You might also find these useful