![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
zhang100jie
这个作者很懒,什么都没留下…
展开
-
linux 增加定时任务 删除日志
rmCharlog.sh #!/bin/bash echo `date +%Y-%m-%d` >> /l/rmCharlog.log find /usr/app/glassfish/domains/domain1/logs -mtime +2 >> /l/rmCharlog.log find /usr/app/glassfish/domains/domain1/logs -mtime ...原创 2013-04-15 10:19:01 · 155 阅读 · 0 评论 -
linux 文件操作命令
1.搜索某些文件并移动到另外文件夹 find . -mtime +10 -exec mv {} ../et1byzzj/ \; 修改10天的文件 移动到et1byzzj文件夹的 {}代表find找出来的每个文件 传进exec后的参数 2.查看某个文件夹下的文件数 find . | wc -l...原创 2013-10-11 14:53:13 · 102 阅读 · 0 评论