Unable to find Applications folder in Mac's terminal

Léo Léopold Hertz 준영 picture Léo Léopold Hertz 준영 · Mar 13, 2009 · Viewed 18.2k times · Source

I tried the following code unsuccessfully

find Applications | xargs -0 grep Applications

I also tried the following unsuccessfully

find Applications

Answer

popcnt picture popcnt · Mar 13, 2009

Was it something instead like:

mdfind Applications | grep Applications

mdfind is a command line interface to Spotlight. Somehow, I doubt this is what you were looking for.

The following command will find the names of Mac apps you have installed somewhere under /Applications.

find /Applications -type d -name "*.app"

Your question as phrased is pretty hard to help with, since you are not stating what your overall intent is...