![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
lkernel
这个作者很懒,什么都没留下…
展开
-
递归删除文件夹下过期文件
1. 删除10小时之前的文件 find /path -type f -mmin +600 -exec rm -f {} \;2. 删除10天之前的文件 find /path -type f -mtime +10 -exec rm -f {} \;3. 如果定时删除,启动crontab就可,比如每小时启动一次 0 * * * * find /path -type原创 2012-10-26 09:54:51 · 741 阅读 · 0 评论 -
查找进程并kill
ps aux|grep Sender.php|awk '{print $2}'|xargs kill -9原创 2013-01-10 14:46:45 · 496 阅读 · 0 评论