如何找到今天在Unix/Linux中创建的所有文件? [英] How do I find all the files that were created today in Unix/Linux?

查看:87
本文介绍了如何找到今天在Unix/Linux中创建的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查找在Unix/Linux中仅在24小时内才创建的所有文件

How do I find all the files that were create only today and not in 24 hour period in unix/linux

推荐答案

在我的Fedora 10系统上,使用findutils-4.4.0-1.fc10.i386:

On my Fedora 10 system, with findutils-4.4.0-1.fc10.i386:

find <path> -daystart -ctime 0 -print

-daystart标志告诉它从今天开始而不是从24小时之前开始计算.

The -daystart flag tells it to calculate from the start of today instead of from 24 hours ago.

但是请注意,这实际上会列出在最后一天创建的修改过的文件. find没有任何选项可以查看文件的真实创建日期.

Note however that this will actually list files created or modified in the last day. find has no options that look at the true creation date of the file.

这篇关于如何找到今天在Unix/Linux中创建的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆