vote up 1 vote down star

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.

flag

44% accept rate

2 Answers

vote up 3 vote down check

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|flag
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 at 2:22
vote up 0 vote down

you can use mdfind.

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

Your Answer

Get an OpenID
or
never shown

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