Skip to content

Latest commit

 

History

History
16 lines (16 loc) · 423 Bytes

change_permissions_dir_file.md

File metadata and controls

16 lines (16 loc) · 423 Bytes

Change directory permissions

# find example_dir -type d -exec chmod 755 {} \;

Change file permissions

# find example_file -type f -exec chmod 644 {} \;

Change file permissions for particular type

# find [example_directory] -name "*.[filename_extension]" -exec chmod [privilege] {} \;

e.g. to give executable permission to "sh" files

# find . -name "*.sh" -exec chmod +x {} \;