Add Find to Mac OSx Command Line Terminal

Would you like to use the find command from the Mac OS command line terminal?

If you are using brew then you may do this very simply.

Its always a good idea to run the brew doctor before any installation.

$> brew doctor

Follow any steps the ‘doctor’ tells you to keep your brew in good health.

Be sure to run the brew update command.

$> brew update

With everything in order you can now install the brew find utilities like this.

$> brew install findutils

The brew installation expects you to use the ‘gfind’ command. If you are used to typing ‘find’, you can simply alias the command like this.

$> echo "alias find='gfind'" >> ~/.bash_profile

Now you have the find command available to you at the command line terminal on your Mac OSX.

Leave a Reply

Your email address will not be published. Required fields are marked *