Monday, March 5, 2018

Find Command

Find command to check the file permission


Directory:
~~~~~~~~~
find <your-dir> -type d -not -perm 755 -exec ls -ld {} \;

File:
~~~~
find <your-dir> -type f -not -perm 755 -exec ls -ld {} \;

No comments:

Post a Comment