up vote 1 down vote favorite
share [g+] share [fb]

What is the best and fastest way to get a list of every file on OS X including hidden and system files along with their attributes? I'm not afraid of the terminal or scripts, but if there is a wonderful audit-like application out there I'd be interested in comparing that to my options.

link|improve this question

55% accept rate
feedback

3 Answers

up vote 3 down vote accepted

Depends on what attributes you need, but the standard unix way would be:

find / -type f -print0 | xargs -0 stat

You mention auditing, so something like tripwire may fit your needs better.

link|improve this answer
1  
I would also recommend adding the > all_my_files.txt at the end. That way you can view the data at a later date too. – ricbax Nov 25 '09 at 2:22
feedback

you can use mdfind.

link|improve this answer
mdfind does not search system directores by default. – Chealion Nov 25 '09 at 2:21
so that means you can set something to let it search for system directories, right? – user31894 Nov 27 '09 at 10:56
feedback

To see "extended attributes" and "file flags" in OS X, you could do:

find / -exec ls -ldO@ {} \;

(that's an upper case letter O in the "-ldO@").

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.