![]() ![]() ![]() To find files by size, you can specify the minimum number of bytes that a file must have to meet your criteria: Want to find files that were modified today? Use find's -mtime option but add -daystart so that it doesn't start its search with yesterday. You can also use the -newer argument to look for files that are newer than some other file that you expect was created or modified around the same time as the one you happen to be looking for. Just end up refining your search several times before you get something that works for you. A lot of files are added in the span of a year+ and you might The CCYY part (i.e., the year) will default to the current year, of course, so spell out 11 or 2011 if you want to begin your search some earlier year - but be prepared for a possible avalanche of output. Using touch, you can create a file with any date and time you need. First, I create a file with a specific time stamp - 00:00 on Nov 1st (i.e., midnight on Oct 31st) - and then I look for files that are newer than it. You can also look for files that have been created or modified since some particular data and time, but this requires an extra command. This command will list files modified within the last two weeks. If you know you created or updated the file within the last couple of weeks, however, you can look for files that have been modified within that time frame. Maybe you were working on a script last month and just can't remember what you called it. bin/doitĪnother common way to look for files is to search for them by age.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |