로그 파일이 2기가가 넘네요...
어떤 로그가 지워도 되는 건지 몰라서욤..
로그 파일 정리를 어떻게 해야 되나요?
제가 리눅스는 초보라 잘 모르겠네요...
[root@com log]# du -sm
2303 .
[root@com log]#
파일별 용량입니다.
[root@com log]# ls -alk
total 2345580
drwxr-xr-x 14 root root 4096 Nov 15 18:44 .
drwxr-xr-x 25 root root 4096 Sep 10 10:16 ..
-rw-rw-r-- 1 root root 18987 Nov 6 14:06 XFree86.0.log
-rw------- 1 root root 288 Nov 15 17:21 boot.log
-rw------- 1 root root 8462 Nov 9 15:01 boot.log.1
-rw------- 1 root root 0 Oct 27 04:02 boot.log.2
-rw------- 1 root root 6550 Oct 25 10:38 boot.log.3
-rw------- 1 root root 216 Oct 16 15:39 boot.log.4
-rw------- 1 root root 207187 Nov 15 19:05 cron
-rw------- 1 root root 258023 Nov 10 04:02 cron.1
-rw------- 1 root root 258002 Nov 3 04:02 cron.2
-rw------- 1 root root 256653 Oct 27 04:02 cron.3
-rw------- 1 root root 257821 Oct 20 04:02 cron.4
-rw-r--r-- 1 root root 4042 Nov 5 14:57 dmesg
drwxr-xr-x 2 root root 4096 Aug 31 2000 fax
-rw------- 1 root root 0 May 23 22:20 htmlaccess.log
drwxr-xr-x 2 root root 4096 Nov 15 18:40 httpd
-rw-r--r-- 1 root root 150088 Nov 15 18:10 lastlog
-rw------- 1 root root 0 Nov 10 04:02 maillog
-rw------- 1 root root 0 Nov 3 04:02 maillog.1
-rw------- 1 root root 0 Oct 27 04:02 maillog.2
-rw------- 1 root root 0 Oct 20 04:02 maillog.3
-rw------- 1 root root 0 Oct 13 04:02 maillog.4
-rw------- 1 root root 2532583 Nov 15 19:05 messages
-rw------- 1 root root 3156803 Nov 10 04:01 messages.1
-rw------- 1 root root 3095770 Nov 3 04:01 messages.2
-rw------- 1 root root 3115604 Oct 27 04:01 messages.3
-rw------- 1 root root 3098338 Oct 20 04:01 messages.4
-rw-r----- 1 mysql mysql 17940 Nov 15 17:44 mysqld.log
-rw-r----- 1 mysql mysql 33320 Nov 11 06:10 mysqld.log.1
-rw-r----- 1 mysql mysql 0 Oct 27 04:02 mysqld.log.2
-rw-r----- 1 mysql mysql 32211 Nov 4 10:47 mysqld.log.3
-rw-r----- 1 mysql mysql 16033 Oct 23 18:06 mysqld.log.4
drwxr-x--- 2 root root 4096 May 23 13:39 nessus
-rw------- 1 root root 0 Nov 1 04:02 netconf.log
-rw------- 1 root root 0 Oct 1 04:02 netconf.log.1
-rw------- 1 root root 0 Sep 1 04:02 netconf.log.2
-rw------- 1 root root 0 Aug 1 04:02 netconf.log.3
-rw------- 1 root root 0 Jul 1 04:02 netconf.log.4
drwxr-xr-x 3 news news 4096 May 23 21:55 news
-rw------- 1 root root 20795008 Nov 5 15:09 pacct
-rw------- 1 root root 16032000 Oct 25 14:10 pacct.1
-rw------- 1 root root 46016 Sep 10 10:27 pacct.2
-rw------- 1 root root 1208485248 Aug 19 14:08 pacct.3
-rw------- 1 root root 1126654208 Aug 1 04:02 pacct.4
drwxrwxr-x 3 qmaill root 4096 Jul 16 18:19 qmail
drwxr-xr-x 2 root root 4096 Nov 15 04:20 sa
drwx------ 2 root root 4096 Apr 26 2001 samba
-rw------- 1 root root 0 Feb 5 2001 savacct
-rw------- 1 root root 8623 Nov 15 18:10 secure
-rw------- 1 root root 22241 Nov 9 18:31 secure.1
-rw------- 1 root root 6785 Nov 2 13:23 secure.2
-rw------- 1 root root 11955 Oct 26 09:45 secure.3
-rw------- 1 root root 5801 Oct 19 10:12 secure.4
drwxr-x--- 3 snort snort 4096 May 23 22:02 snort
-rw------- 1 root root 0 Nov 10 04:02 spooler
-rw------- 1 root root 0 Nov 3 04:02 spooler.1
-rw------- 1 root root 0 Oct 27 04:02 spooler.2
-rw------- 1 root root 0 Oct 20 04:02 spooler.3
-rw------- 1 root root 0 Oct 13 04:02 spooler.4
drwxr-x--- 2 squid squid 4096 Mar 3 2001 squid
-rw-r--r-- 1 root root 0 May 17 2001 statistics
drwx------ 2 root root 4096 Nov 15 19:06 supervise
-rw------- 1 root root 0 Feb 5 2001 usracct
drwxr-xr-x 2 uucp uucp 4096 May 23 22:30 uucp
drwxr-xr-x 2 root root 4096 Feb 13 2001 vbox
-rw-rw-r-- 1 root utmp 153984 Nov 15 18:10 wtmp
-rw-rw-r-- 1 root utmp 196992 Oct 31 17:58 wtmp.1
-rw-rw-r-- 1 root root 7509 Nov 6 14:06 xdm-errors
-rw-r--r-- 1 root nobody 10375545 Nov 15 15:44 xferlog
[root@com log]#