Results 1 to 4 of 4

Thread: How to find file modified in unix

  1. #1
    Join Date
    Jan 2009
    Posts
    40

    How to find file modified in unix

    Hi,
    I am unable to read the file modified some time ago. How to find all files that was modified since a specific time ago in Unix environment?

    All suggestions are welcome.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: How to find file modified in unix

    For obscure historical reasons find mini-language is completely different from all other UNIX commands: it has full-word options rather than single-letter options. For example, instead of a typical Unix-style option -f to match filenames (like in tar -xvf mytar.tar) find uses option -name. Also path to search can consist of multiple starting points, for example

    find /usr /bin /sbin /opt -name sar # here we exclude non-relevant directories

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: How to find file modified in unix

    The find command is used to locate files on a Unix or Linux system. Find will search any set of directories you specify for files that match the supplied search criteria. You can search for files by name, owner, group, type, permissions, date, and other criteria. Go through the following thread: How to find files modified in Linux. I hope it helps.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: How to find file modified in unix

    Try using st_mtime instead of st_ctime. Use the ls command on the file:
    ls -l file # show mtime
    ls -lc file # show ctime
    ls -lu file # show atime

Similar Threads

  1. Formatting Modified Date Variable in Batch File
    By erock24 in forum Software Development
    Replies: 1
    Last Post: 21-10-2011, 12:39 PM
  2. UNIX Executable File not opening
    By himeshRES in forum Operating Systems
    Replies: 3
    Last Post: 10-11-2010, 01:17 AM
  3. How to Manage File Permission in Unix
    By blueprats in forum Guides & Tutorials
    Replies: 1
    Last Post: 17-06-2010, 01:24 PM
  4. How to find files modified in Linux
    By AmdUser in forum Operating Systems
    Replies: 2
    Last Post: 20-05-2009, 11:43 PM
  5. How do i modified pst file in Outlook
    By Atilla in forum Windows Software
    Replies: 4
    Last Post: 30-04-2009, 10:53 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,713,853,324.37214 seconds with 17 queries