Shell中find中的atime、ctime、mtime的区别
生活随笔
收集整理的這篇文章主要介紹了
Shell中find中的atime、ctime、mtime的区别
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Shell中find中的atime、ctime、mtime的區(qū)別
find用法:
-atime n File was last accessed n*24 hours ago. 訪問(讀取文件或執(zhí)行文件)
-ctime n File’s status was last changed n*24 hours ago. 寫入修改 更改屬主
-mtime n File’s data was last modified n*24 hours ago. 文件狀態(tài)被修改
-amin n File was last accessed n minutes ago. 這是按分鐘來算的一般不用
-cmin n File’s status was last changed n minutes ago.
關(guān)于+n還是-n:
+n for greater than n, #N天以外的,N天前的
-n for less than n #N天以內(nèi)的
n for exactly n #正好的
# find . -ctime 6 表示剛好第6天
# find . -ctime +6 表示第6天以外
# find . -ctime -6 表示第6天以內(nèi)
總結(jié)
以上是生活随笔為你收集整理的Shell中find中的atime、ctime、mtime的区别的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: nodejs项目npm start背后的
- 下一篇: CF传说之路活动网址2020