利用 「find」 以日期為條件找出被修改或狀態改變的檔案
發表於 : 2014-08-20, 06:30
#前兩天,檔案狀態改變的檔案
root@eps:/mnt/toyoink-ct_esf# find . -ctime 2|less
#兩天以前,檔案狀態改變的檔案
root@eps:/mnt/toyoink-ct_esf# find . -ctime +2|less
#兩天以內,檔案狀態改變的檔案
root@eps:/mnt/toyoink-ct_esf# find . -ctime -2|less
# 找出 2013-02-20之後(包含)至2013-02-21之前 ,也就是2013-02-20 有被存取過的檔案
find . -newerct 2013-02-20 -not -newerct 2013-02-21
#mtime(檔案內容修改時間)、ctime(檔案狀態改變時間)、atime(檔案最後被存取時間)
root@eps:/mnt/toyoink-ct_esf# find . -ctime 2|less
#兩天以前,檔案狀態改變的檔案
root@eps:/mnt/toyoink-ct_esf# find . -ctime +2|less
#兩天以內,檔案狀態改變的檔案
root@eps:/mnt/toyoink-ct_esf# find . -ctime -2|less
# 找出 2013-02-20之後(包含)至2013-02-21之前 ,也就是2013-02-20 有被存取過的檔案
find . -newerct 2013-02-20 -not -newerct 2013-02-21
#mtime(檔案內容修改時間)、ctime(檔案狀態改變時間)、atime(檔案最後被存取時間)