Find all files that have been changed today

Every day solutions to every day challenges. + Brilliant stuff

Moderators: b1o, jkerr82508

Forum rules
Please feel free to post your tip it does not have to be advanced. Also ask questions directly related to the tip here. But do not start new threads with questions or ask for help here. That is what the help section is for. forum rules: http://bjoernvold.com/forum/viewtopic.php?f=8&t=568
User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Find all files that have been changed today

Postby viking60 » 21 Jun 2014, 16:37

When searching for files it can help to get an overview over all files that have changed today (from midnight).
This will give you the info:

Code: Select all

find ~ -type f -mtime 0

0 means today
if you put a 1 in there you will get data that are 1 day old etc.
To remember it I made the changedtoday alias:

Code: Select all

alias changedtoday='find ~ -type f -mtime 0'

So whenever I write

Code: Select all

changedtoday
in a terminal I get the overview over all files that have changed today.
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

Return to “Tips & Tricks”