find -mtime -4
和find -mtime +4
做什麼?我無法理解手冊頁中給出的例子。Unix find -mtime {負值或正值}
2
A
回答
3
按照手冊頁:
-mtime n
File’s data was last modified n*24 hours ago. See the comments
for -atime to understand how rounding affects the interpretation
of file modification times.
到-mtime
該參數被解釋爲整個天數文件的年齡。 -mtime +n
表示嚴格大於,-mtime -n
表示嚴格小於。
所以,
-4
這意味着不到4天。
+4
意味着超過4天即4 * 24小時。
3
嗯,我可以。
-mtime n
文件數據的最近一次修改是在n * 24小時前。查看評論爲
-atime
瞭解四捨五入如何影響文件的解釋修改時間
find . -mtime 0 # find files modified between now and 1 day ago
# (i.e., within the past 24 hours)
find . -mtime -1 # find files modified less than 1 day ago
# (i.e., within the past 24 hours, as before)
find . -mtime 1 # find files modified between 24 and 48 hours ago
find . -mtime +1 # find files modified more than 48 hours ago
相關問題
- 1. 解釋find -mtime命令
- 2. oracle中的正值對負值和負值變爲正值
- 3. 如何識別值從正值變爲負值或負值的ID?
- 4. Highcharts:爲正值和負值
- 5. find - mtime vs mmin - 奇怪的結果
- 6. 如何獲得可以爲正值或負值的隨機值?
- 7. 在excel中找到正值或負值之間的平均值
- 8. 數連續正數或負數值
- 9. Groovy中的Unix FIND命令
- 10. jQuery的負載xml和設置顏色正值和負值
- 11. 正/負值分列?
- 12. 我打破了Ubuntu的FIND命令,mtime不能正常工作
- 13. 在控制檯中將負值稱爲負值,負值如何轉爲正值?
- 14. unix find命令
- 15. 融合圖表column2d showZeroPlane時,它只有正值或負值
- 16. 更改基於正值或負值的文本
- 17. 一般規則:在錯誤代碼負值或正值C/C++
- 18. 如何在字符串中查找正值或負值?
- 19. 正則表達式在Unix中位數find命令
- 20. 「find command -mtime 0」沒有得到我想要的文件
- 21. 將正值更改爲負值
- 22. SQL Sum()返回正值和負值
- 23. 具有負值和正值的NumberPicker
- 24. 轉換浮動負值正
- 25. 負值打印不正確
- 26. 熊貓 - 比較正/負值
- 27. MYSQL SUM的正負值
- 28. Django queryset SUM正負值
- 29. 在JavaScript中將值從負值轉換爲正值還是負值轉換爲負值?
- 30. 文本字段不應接受零值或負值?只允許正值
謝謝!我得到了我的答案! – Unixbun
不客氣。很高興幫助。 – SMA