Find all files on a given filesystem, capturing some nice attributes about them:
find / -xdev | xargs stat -c "%n %a %u %g" | sort > file.txt
This Blog is primarily intended to be a notes-to-self kind of thing. The information contained here is guaranteed to range anywhere from correct to wildly wrong. Use at your own risk. YMMV.