Show all files in Finder (equivalent to *.* on Windows)

Back when I used to work with Windows I was able to find all files inside a particular folder (and sub folders) by using *.*

For those not familiar with what this is the * means "any" so basically the first * means "any filename" and the second one means "any extension/file type".


With the Mac, as much as I try to find a way to do this, I just can't. Google is not helping either.

I'm not looking for a way to just view the files (I'm aware that I can click the triangle, etc).

I want to be able to display all files in a long list, so then I can sort them by name or type or tag, etc.

If I have a lot of different file types, I just want Finder to display all of them. The goal is not "well, if you know the file type, just use kind:XYZ file type". I don't want to think what kind of files I have. I want finder to show me ALL files so then I can see what file types I have.


This is super frustrating, because this was such a great way of organizing my folders and with Finder it's just not possible. At least, I'm not aware of how to do it.


Posted on Mar 16, 2022 12:21 PM

Reply
4 replies

Mar 16, 2022 12:49 PM in response to tiagorocha

Neither the Finder nor Spotlight support wildcards like *.*. That is a UNIX wildcard paradigm one can apply on the Terminal command-line since macOS is based on BSD UNIX.


In a Finder Window, only list (⌘+2) or column (⌘+3) views provide a folder hierarchy which is only visible when you click the triangle in the specific folder(s). This does not give you a one-time view of all files in the entire folder hierarchy unless you click all interim triangles to expand them. If the Finder grouping is by name, all files in the exposed hierarchy will be sorted by name, or other group setting, as you expand the respective triangles.


If you want a list of all regular files in a folder hierarchy you would have to use either AppleScript, or the Terminal to return a list of those files, from which you could sort by name, by tag name, or set a tag value. In the latter suggestion, the UNIX find, or Zsh shell can recursively get all regular files from a folder hierarchy. There are no existing shell-based commands that are installed with the operating system that can manipulate tags in the Terminal though. I have written code to do this, and there is a third-party tool that will also do this in the Terminal.

Mar 16, 2022 2:25 PM in response to tiagorocha

Yes, a Finder window search field using:


name:.

will return all of the filenames (with an extension) in that starting folder hierarchy including duplicates if they are present. Caveats as Bob Harris has explained.


tag:"my custom tag name"
tag:yellow
tag:yellow AND tag:blue


would return the files with those tag settings, including any with both tags set in the last example.

Mar 16, 2022 1:15 PM in response to VikingOSX

Thanks for the reply.

My goal with Finder is to then do certain things I won't be able using Terminal or any other methods.

One thing I tried and it seems to be working is by searching for all files named . (yes, just a dot). Since all files have a dot rto separate the name from the extension, it seems to be working.

At the moment I have like 5k files, so it's hard to confirm it's actually getting ALL files, but do you think this would a method? I mean, does it make sense that it would show all files or do you see any issue with it?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Show all files in Finder (equivalent to *.* on Windows)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.