chown -R

Recursively change ownership of a directory tree

chown -R user:group /path changes owner and group of every file and directory. Common after deploying an app as root.

Example

$ chown -R www-data:www-data /var/www/html/
(all files now owned by www-data)
Tip: Type it yourself in the terminal below - reading is not the same as doing.