Mac – OSX – Find Files (from Terminal Mode)

Mac – OSX – Find Files (from Terminal Mode)

So you are trying to develop and review Application Source Code while sitting in front of your TV and watch ACC Basketball; specifically Carolina beat up Maryland.

This kid, James Michael McAdoo, with the Fro, is a bit Flashy.

You can watch a bit of him on YouTube …

But, you say you need to find files and I am having you look at a High School B-Ball player.

So here are quick steps to find files.

1) Step 1 is to launch the Terminal Window

2) Step 2 is to change current folder to your Source Code root



Syntax:

    cd <app-src-code-root>

Sample:

    cd ~/app/hotelRental

3) Find Java Files


-- to find files underneath your current directory
-- that have the keyword java in their name
Sample:

find . -name "*java*"

4) Search you entire computer HD, looking for Java Files



-- to find files from your entire HD
Sample:

find / -name "*java*" 2> /dev/null

And, yes you do need the silly “2> /dev/null” as it tells the system to hide error messages (by flushing them out to a null device).

In this case the error messages are due to the numerous “security denial” errors.

 

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s