In the following example, we will recursively change the owner and the group for all files and subdirectories.
Note: sudo access is required.
Command used -
chown -R linuxuser:linuxgroup Dir_name/
Subscribe to our channel for more tech stuff.