The syntax for searching files by size is: find -size Linux lets you search for files based on their sizes. What you’ll get are all of the files that are more recently modified than your file. It can be used like this: find / -mmin -1Īlso, we have the -newer argument, which can be used to compare the age of two or more files and display the newer one. The -mmin argument looks for modified files on a minute basis. While not often used, there are some additional arguments that are also related to timed-searches. To find all files whose meta-data was updated less than a day ago, run the following: find / -ctime -1 It lists down all the files that have a modification time of more than two days ago. We can narrow down our queries even more by adding plus ( +) and minus (–) signs preceding the number of days. This command will show all files that were accessed a day ago starting from your current time. This option has to be used with a number that specifies how many days passed since the file was accessed, modified or changed: find / -atime 1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |