Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I use the find command to list all files for example modified on april 9 2011.

Thank you,

Chris

share|improve this question

3 Answers 3

up vote 1 down vote accepted

Good suggestions here:

http://stackoverflow.com/questions/158044/how-to-use-find-to-search-for-files-created-on-a-specific-date

and

http://www.cyberciti.biz/faq/howto-finding-files-by-date/

I personally would use the -mtime option, but depending on your version of Linux/find, you may be able to use the options listed in the first link...

share|improve this answer

You want the -mtime option to find. You'll need to calculate how long ago the day you want is.

share|improve this answer

I usually just use 'ls' from the parent directory of the possible directories the files I want are held

ls -alhR | grep "Feb 22"

where "Feb 22" is the date you're looking for. This is a terrible method due to it showing any files editing on Feb 22, regardless of the year - but usually this isn't an issue for me. If you need on or after X date, go with the other suggestions of using mtime.

share|improve this answer

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.