Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

As we all know, despite being named "Finder", the Finder is virtually useless at finding files.

In Mac OS X 10.6 (or any version), how can I use the command line (bash in Terminal) to find files modified today?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

There are several ways to do this in bash from the terminal - depending on exactly what you want to find:

Find files modified in the last 24 hours

find / -mtime -1 -print

Find files modified today (likely what you want)

find / -newerct 'yesterday' -print

or, using Spotlight

mdfind date:today

This can also be done from the GUI with Spotlight.

  1. Open Spotlight (option-command space by default).
  2. Add a criteria to search for, by hitting the Plus sign near the top right of the Spotlight window.
  3. Change the criteria to "Last modified date" is "today."
share|improve this answer
2  
Note that you don't need the -print at the end since find defaults to it and in most cases you want to replace the / with either . to find down from the current directory or ~ to find in your home directory rather than the top of the tree. –  Tony Williams Jan 16 at 5:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.