Search for files changed within n days

Rate this:
By tobycatlin (Contact - View My Woyano)
Published Fri 09 Feb 2007, 294 Views, 3 Comments

find path -mtime -n

example to find files changed in the last 7 days

find ./ -mtime -7


This Item
Category: Knowledge, Snippets, Computers
Tags: bash linux unix solaris command line
Contributor
tobycatlin
Share it
Link to this item:
Bookmark this item: RSS Feed

People who liked this item

    3 Comments

  1.  
    JV ~ 18 months ago
    0 votes thumbs up thumbs down
    Can you be a little more descriptive! I dont get it cos Im thick
    [ reply ]
    1.  
      tobycatlin ~ 18 months ago
      0 votes thumbs up thumbs down
      It just searches for files that have changed in that last 7 days. if you wanted to search for files that have changed in the last 5 days change the 7 to a 5
      [ reply ]
      1.  
        jake ~ 18 months ago
        0 votes thumbs up thumbs down
        I tried typing this in Internet Explorer and it didn't work at all. It didn't find anything. I'm a stupid thick head
        [ reply ]
        1.  
          22 votes thumbs up thumbs down
          This is my two cents...

             
          Hey you know AdGuy always gets the last word! ;)

        Please Login to Add Your Comment   ..or..  

        Replying to comment by