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

后端 未结 11 722
梦谈多话
梦谈多话 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 01:16

    You can use find and ls to accomplish with this:

    find . -type f -exec ls -l {} \; |  egrep "Aug 26";
    

    It will find all files in this directory, display useful informations (-l) and filter the lines with some date you want... It may be a little bit slow, but still useful in some cases.

提交回复
热议问题