Explaining the 'find -mtime' command

后端 未结 4 1425
时光说笑
时光说笑 2020-12-09 15:30

I\'m trying to remove all the dateed logs except the most recent. Before I execute a script to remove the files, I want to of course test my commands to make sure I\'m bring

4条回答
  •  伪装坚强ぢ
    2020-12-09 16:12

    To find all files modified in the last 24 hours use the one below. The -1 here means changed 1 day or less ago.

    find . -mtime -1 -ls
    

提交回复
热议问题