Skip to content

Instantly share code, notes, and snippets.

@xiocode
Created August 15, 2019 08:52
Show Gist options
  • Save xiocode/5e7ebc58e94531664c35fe472ba989b9 to your computer and use it in GitHub Desktop.
Save xiocode/5e7ebc58e94531664c35fe472ba989b9 to your computer and use it in GitHub Desktop.
批量修改文件权限
for directories
find /desired_location -type d -print0 | xargs -0 chmod 0755
for files
find /desired_location -type f -print0 | xargs -0 chmod 0644
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment