脚本:找到文件已在过去24小时内被改变 [英] Scripts: find the files have been changed in last 24 hours

查看:176
本文介绍了脚本:找到文件已在过去24小时内被改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如。在MySQL服务器上我的Ubuntu的机器上运行。在过去24小时内的一些数据已经改变。

E.g. A Mysql server is running on my Ubuntu machine. Some data had been changed during the last 24 hours.

什么(Linux)的脚本,可以发现,在已经过去24小时内已更改的文件?

What (Linux) scripts can find the files that have been changed during the last 24 hours?

请列出文件名,文件大小和修改时间。

Please list the file names, file sizes, and modified time.

推荐答案

要查找某个特定目录中的最近24小时内修改的所有文件(最后一天)及其子目录:

To find all files modified in the last 24 hours (last full day) in a particular specific directory and its sub-directories:

find /directory_path -mtime -1 -ls

应该是根据自己的喜好

Should be to your liking

这篇关于脚本:找到文件已在过去24小时内被改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆