Home > Linux > chmod directory only or file only

chmod directory only or file only

This might be useful if you want to chmod a file or directory only

find -type d -print0 |xargs -0 chmod 755
find -type f -print0 |xargs -0 chmod 644
Categories: Linux Tags: ,
  1. No comments yet.
  1. No trackbacks yet.