In a previous version of himself he wrote books on technology.Ĭontent is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4. He is interested in people, music, food and writing. You can edit it here and send me a pull request.
Have an update or suggestion for this article? Note that -mtime +10 finds files that are over 11 days old, not 10 (whose age, rounded down to an integer number of days is stricktly greater than 10). You can use the ls command to list files including their modification date by adding the -lt flag as shown. right after the type of the time) is the field from strftime () / date to show.
How to search for text within multiple files But ls -t is not working on find result but on whole directory.How to find and replace in a range of files Details: To find files in the /nas/images directory tree that are newer than the file /tmp/foo file, enter: find / etc -newer / tmp / foo.Examples of finding a file by name, finding and deleting a file, finding a directory and searching by modification time and permissions.Įstimated reading time: 3 minutes Table of contents Last updated Monday, Linux and Unix find command tutorial with examples Tutorial on using find, a UNIX and Linux command for walking a file hierarchy. Linux and Unix find command tutorial with examples | George Ornbo