How to find the files that are created in the last hour in unix

前端 未结 6 1155
栀梦
栀梦 2021-01-29 18:36

How to find the files that are created in the last hour in unix

6条回答
  •  悲哀的现实
    2021-01-29 19:21

    sudo find / -Bmin 60
    

    From the man page:

    -Bmin n

    True if the difference between the time of a file's inode creation and the time find was started, rounded up to the next full minute, is n minutes.

    Obviously, you may want to set up a bit differently, but this primary seems the best solution for searching for any file created in the last N minutes.

提交回复
热议问题