http://content.hccfl.edu/pollock/Unix/FindCmd.htmから:
find . -mtime 0 # find files modified within the past 24 hours
find . -mtime -1 # find files modified within the past 24 hours
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago
-mtime -30過去 30 日間を取得するには、chorobas のコメントで提案されているように、「m」とマイナス記号が 1 つだけあることを確認してください。-mtime 30ちょうど 30 日前のファイルのみを提供します。
-daystartちょうど 30*24 時間前ではなく、午前 0 時から始まる過去 30 日間のファイルを取得するオプションを使用することができます。%TDand%Trの代わりに%ADandを使用して、 %Ar(アクセス時間の代わりに) 変更時間を取得します。
最終的なコマンドは次のようになります。
find / -daystart -mtime -30 -printf "%TD %Tr - %p\n" 2> /dev/null | sort -r > /lastmodified.txt
12は 01 の前にソートされるため、ソートは 1 月に中断されることに注意してください%T+。%Tu/%Tm/%Td %TH:%TM11/29 21:07)