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