Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I'd like to get a list of all indexed files and their path that spotlight came across. How would I do that ? mdutil does not seem to be of any help.
This command will list all files indexed by spotlight system:
mdfind "kMDItemDisplayName == '*'"
To store the output in a file:
mdfind "kMDItemDisplayName == '*'" > listOfFiles.txt