Announcement

Collapse
No announcement yet.

Last modified files in Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Last modified files in Linux

    How to find the last modified files in Linux. Any kind of comment or suggestion would be appreciated.

  • #2
    Find command can be used in many ways.
    Following is one of the examples of find command which displays all the files that are created/modified after filename.
    # find -newer filename

    Comment


    • #3
      Please show some run time out put of command..

      Comment


      • #4
        Following is a run time example :

        List the files by last time :

        ls -lrt
        total 0
        -rw-r----- 1 root root 0 2011-02-20 12:27 1.txt
        ----r----- 1 root root 0 2011-02-20 15:27 abc.htm
        -rw------- 1 root root 0 2011-02-20 15:29 123.txt
        -rw-r--r-- 1 root root 0 2011-02-20 20:30 swt.txt
        -rwxrwxrwx 1 root root 0 2011-02-20 20:31 iudt.txt
        ---------- 1 root root 0 2011-02-20 20:31 uidkj.txt
        # find -newer 123.txt
        .
        ./swt.txt
        ./iudt.txt
        ./uidkj.txt

        Comment

        Working...
        X