How do I find all the files that were created today in Unix/Linux?

后端 未结 11 572
梦谈多话
梦谈多话 2020-12-24 00:21

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

11条回答
  •  隐瞒了意图╮
    2020-12-24 00:51

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

    find  -daystart -ctime 0 -print
    

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

    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.

提交回复
热议问题