how to change ownership of a directory in linux code example
Example 1: change owner directory linux
sudo chown -R username:group directory
Example 2: take ownership directory linux
sudo chown -R $USER ~/.blabla
Example 3: ubuntu change directory owner
sudo chown -R $USER ~/.blabla
Example 4: change user linuxcommand ch
chown USER:GROUP FILE
Change the user and grop for an entire folder:
chown -R USER:GROUP FILE
Example 5: how to change owner of all files in a directory
sudo chown <username:username> <directory_name>/*/*