One of the utility commands of Linux that you should know in the first day of your Linux learning seminar is find.
To search recursively in the directory somedir for files changed / created / modified within 1 day:
find somedir -ctime -1
To search recursively in the directory somedir for files changed changed / created / modified more than 1 days ago:
find somedir -ctime +1
To search recursively in the directory somedir for files modified within 1 day:
find somedir -mtime -1
To search recursively in the directory somedir for files modified more than 1 days ago:
find somedir -mtime +1
You should also read:
- Linux: How to find all the files containing a particular text string?
- Linux: The differences between file times: atime (accessed time), ctime (changed time) and mtime (modified time).
- Linux: Check how much disk storage each directory takes up (Disk Usage command – du)
- Linux: How to open and extract an RAR zipped file and unrar the archive?
- Linux: How to ‘find’ and search ONLY text files?


Facebook
Twitter
Google Plus
{ 1 comment… read it below or add one }
Using this, I will try to find which images have been uploaded recently(within 7 days), by my users. And may be their size also.
find /public_html/upload/ -regex “\.gif|\.png|\.jpg|\.jpeg” -mtime -7
Reviews welcome.