免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1977 | 回复: 4
打印 上一主题 下一主题

是否有方法获得某时间段数据增长量? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-02-01 15:25 |只看该作者 |倒序浏览
5可用积分
各位:

想了解,Linux默认工具是否有方法可以获取09年1月1日- 09年1月10日所有分区内的数据增长量? 类似df的输出结果。

另,是否有方法可以获取1月1日-1月10日哪些文件发生过创建、编辑的动作? 譬如数据库的datafile、log等;

非常感谢!

论坛徽章:
0
2 [报告]
发表于 2009-02-01 15:53 |只看该作者

回复 #1 ccnp_Server 的帖子

相对而言是一个crontab中的执行的shell

论坛徽章:
0
3 [报告]
发表于 2009-02-01 16:41 |只看该作者
非常感谢,就是类似在windows下面创建一个task定期执行是吧,如果想导出task定义前的数据是不可能了,是吧?
请不要鄙视我用windows来比喻,因为我只了解这个系统,忘谅解!


find 命令是否可以根据创建、编辑日期来搜索系统中的文件?

论坛徽章:
0
4 [报告]
发表于 2009-02-01 20:07 |只看该作者
man find
-mmin n

    File's data was last modified n minutes ago.
-mtime n
    File's data was last modified n*24 hours ago. See the comments for -atime to understand how rounding affects the interpretation of file modification times.
-newer file
    File was modified more recently than file. If file is a symbolic link and the -H option or the -L option is in effect, the modification time of the file it points to is always used.
-amin n
    File was last accessed n minutes ago.
-anewer file
    File was last accessed more recently than file was modified. If file is a symbolic link and the -H option or the -L option is in effect, the access time of the file it points to is always used.
-atime n
    File was last accessed n*24 hours ago. When find figures out how many 24-hour periods ago the file was last accessed, any fractional part is ignored, so to match -atime +1, a file has to have been accessed at least two days ago.
-cmin n
    File's status was last changed n minutes ago.
-cnewer file
    File's status was last changed more recently than file was modified. If file is a symbolic link and the -H option or the -L option is in effect, the status-change time of the file it points to is always used.
-ctime n
    File's status was last changed n*24 hours ago. See the comments for -atime to understand how rounding affects the interpretation of file status change times.

论坛徽章:
0
5 [报告]
发表于 2009-02-02 10:41 |只看该作者
樓上已經給出了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP