存档

文章标签 ‘log’

lighttpd的日志rotate

2009年10月25日 没有评论

之前找到的通过logrotate计划任务来截断lighttpd的日志目前看起来并不好用,为了更好的解决lighttpd的日志rotate,找到了cronolog。从其网站转载一段说明:

cronolog is a simple filter program that reads log file entries from standard input and writes each entry to the output file specified by a filename template and the current date and time. When the expanded filename changes, the current file is closed and a new one opened. cronolog is intended to be used in conjunction with a Web server, such as Apache, to split the access log into daily or monthly logs.
阅读全文…

鞋衫各式名品专卖

收藏与分享

Linux常用命令介绍

2008年2月22日 21 条评论

谈到Linux命令很多人都望而生畏,因为Linux的命令太多了,而且每个命令都有很多选项,但是Linux命令又是Linux系统里最重要的工具,学习Linux命令是学习Linux必不可少的一个环节,也是Linux入门基础。所以在介绍Linux的其它方面之前,我们先介绍一下Linux的常用命令,希望我的这点简单介绍对你了解Linux命令有所帮助。

在介绍所有的命令之前,先介绍一下Linux的在线帮助man。在Linux下,当你要查找一个命令的用法的,你可以通过 man 命令名 来源得命令的详细说明。因为每个Linux都有一份man文档,所以介绍命令的时候我们只是简直介绍一下命令的学用选项。如果想查看命令的详细说明,请自己看man。下面是man各小节的内容:
   1    用户命令。
   2    系统调用。
   3    库函数。
   4    特殊文件(设备和网络接口)。
   5    文件格式。
   6    游戏和演示。
   7    系统环境、表格和宏。
   8    系统管理和相关命令。

    阅读全文…
收藏与分享
分类: Linux tools 标签: , , , ,

删除多个有规律的目录

2008年2月4日 没有评论

 删除多个有规律的目录

shell > vi del_squid_log.sh

#/bin/bash
for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f;
do
for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f;
do
rm -rf /var/lib/squidlog/log_$i$j*
done
done
阅读全文…

简单生活。简单运动

收藏与分享
分类: Linux tools 标签: , , , ,