Change permission of all files / folders of a directory

Submitted by phannphong on Tue, 03/05/2019 - 00:08
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