find /path/to/directory/ -daystart -ctime 1
The find command helps you to find files that were changed or modified yesterday
-daystart :- will tell to begin the search from yesterday 00:00 and not - 24:-00 hours. If u don't mention it, this will show you files updated 24 hours ago from the current time.
-ctime :- will tell to look for files modified 1 day ago, to check for files n days ago specify -ctime "n", where n is the no. of day
The find command helps you to find files that were changed or modified yesterday
-daystart :- will tell to begin the search from yesterday 00:00 and not - 24:-00 hours. If u don't mention it, this will show you files updated 24 hours ago from the current time.
-ctime :- will tell to look for files modified 1 day ago, to check for files n days ago specify -ctime "n", where n is the no. of day
No comments:
Post a Comment