Find out if file has been modified within the last 2 minutes

前端 未结 6 1716
栀梦
栀梦 2020-12-11 14:51

In a bash script I want to check if a file has been changed within the last 2 minutes.

I already found out that I can access the date of the last modification with <

6条回答
  •  轮回少年
    2020-12-11 15:17

    I think this would be helpful,

    find . -mmin -2 -type f -print
    

    also,

    find / -fstype local -mmin -2
    

提交回复
热议问题