Results 1 to 3 of 3

Thread: How to find files modified in Linux

  1. #1
    Join Date
    Nov 2008
    Posts
    866

    How to find files modified in Linux

    I am learning Linux commands and I want to know how to find files in a directory which has been modified on some specific dates.

    Suppose that I have a directory which is full of files. I want a small step how to get all files that are newer than other files. Is there a way to know this and that too with the command?

  2. #2
    Join Date
    Aug 2008
    Posts
    540

    Re: How to find files modified in Linux

    To find all files that was modified since a specific time ago in Linux, use the find command.

    Syntax: find / -mtime number_of_days -print

    For Example:

    find / -mtime -3 -print

    displays the files modified within 3 days

  3. #3
    Join Date
    May 2008
    Posts
    681

    Re: How to find files modified in Linux

    The Linux command is quite powerful and helps to see a list of all recently modified files. For example, if you want to see the files modified in last one week:

    find . -mtime -7

    However if you still want to be specific in this search then:

    find . -ctime +3 -a -ctime -7

    which shows all the files modified with particular time from 3rd day till yesterday.

Similar Threads

  1. Replies: 3
    Last Post: 12-01-2012, 08:48 AM
  2. Replies: 7
    Last Post: 01-08-2011, 10:49 AM
  3. Replies: 6
    Last Post: 27-05-2011, 10:20 AM
  4. How to find file modified in unix
    By Yancy in forum Operating Systems
    Replies: 3
    Last Post: 23-05-2009, 05:21 PM
  5. Find drive files in Puppy Linux
    By Romit in forum Operating Systems
    Replies: 2
    Last Post: 13-02-2009, 09:59 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,063,303.90039 seconds with 17 queries