Suppose I have a folder, containing other files and folders, and I'd like to find out recursively which subfiles and subfolders have non-default permissions (i.e., not 644 or 755).
Which command can be used to do that? The command should output a list of the relevant files and folders, and their permissions.
Best Answer
You can do the entire task using just
find
:Example
Make all permutations of permissions (000-777).
A sample of our
find
command's list of files it's finding:If we run our
find
command we can confirm that it worked: