linux change owner of folder 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: linux change directory

// change directory in terminal
cd folder_name/subfolder_name

// go up one directory level
cd ..

// back to previous directory
cd -

// return to home directory
cd

Example 5: change owner of all the files from a directory linux

chown -R username:group directory

Example 6: changing folder permission in linux

chown {user:group} {directory} -R