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

后端 未结 11 558
梦谈多话
梦谈多话 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:09

    Use ls or find to have all the files that were created today.

    Using ls : ls -ltr | grep "$(date '+%b %e')"

    Using find : cd $YOUR_DIRECTORY; find . -ls 2>/dev/null| grep "$(date '+%b %e')"

提交回复
热议问题