gpt4 book ai didi

Unix find -mtime {一个负值或正值}

转载 作者:行者123 更新时间:2023-12-01 08:55:51 28 4
gpt4 key购买 nike

做什么find -mtime -4find -mtime +4做?我无法理解手册页中给出的示例。

最佳答案

嗯,我可以。

-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


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

关于Unix find -mtime {一个负值或正值},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27700943/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com