找回密码
 注册
查看: 138|回复: 0

Linux: list out only files newer than some data

[复制链接]
发表于 2013-12-12 12:06:57 | 显示全部楼层 |阅读模式
#set timestamp for file    touch --date "2011-12-31" /tmp/foo# Find files newer than 2011/Dec/31, in /some/filesfind /some/files -newer /tmp/foo

Use find command with mtime arguments:  Some examples are here or here
For example, list files changed in last 7 days...
find / -type f -mtime -7



您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|BC Morning Website ( Best Deal Inc. 001 )

GMT-8, 2026-9-18 05:50 , Processed in 0.008701 second(s), 17 queries .

Supported by BestDeal Online X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表