Change permission of all files / folders of a directory

Submitted by phannphong on 5 March, 2019
Change permission of all files / folders of a directory

1. Change permission of all files:

find /<path_to_desired_directory> -type f -print0 | xargs -0 chmod 0755

2. Change permission of all folder:

find /<path_to_desired_directory> -type d -print0 | xargs -0 chmod 0644

Tags