change permissions of all folders and sub folders in linux read and write code example Example: change the permissions of a folder in linux sudo chmod -R 757 <file>