利用 「find」 以日期為條件找出被修改或狀態改變的檔案

版主: stnet253

回覆文章
tony
文章: 585
註冊時間: 2012-02-26, 07:04
聯繫:

利用 「find」 以日期為條件找出被修改或狀態改變的檔案

未閱讀文章 tony »

#前兩天,檔案狀態改變的檔案

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(檔案最後被存取時間)
回覆文章

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客