Find the files that have been changed in last 24 hours

前端 未结 6 2163
情书的邮戳
情书的邮戳 2020-11-29 14:36

E.g., a MySQL server is running on my Ubuntu machine. Some data has been changed during the last 24 hours.

What (Linux) scripts can find the files that have been cha

6条回答
  •  离开以前
    2020-11-29 15:19

    You can do that with

    find . -mtime 0
    

    From man find:

    [The] time since each file was last modified is divided by 24 hours and any remainder is discarded. That means that to match -mtime 0, a file will have to have a modification in the past which is less than 24 hours ago.

提交回复
热议问题