Trying to locate the 25 largest files with read/execute world permissions to be displayed from a combination of 4 different directories. I'm rather new at UNIX and trying to learn the basics.
This is what I have come up with so far:
find /dir1 /dir2 /dir3 /dir4 -perm -u+rx | sort -nr | head -25
My results seems to be giving me 25 files just from the last directory and ignoring the other 3. Is there a way to display the file permissions from in my results as well? I have been looking at the find man page, but I can't seem to figure this out.
Any suggestions will be greatly appreciated!