/var空间满了,如何删除不需要的文件?
系统是HP-UNIX,今天用bdf命令查看,发现/var目录使用率都99%了
不想扩空间了,就问一下各位,如何把这个目录下没用的文件给删了?
/dev/vg00/lvol8 10485760 10394944 90816 99% /var
:/var#ls -l
total 128
drwxr-xr-x 2 root sys 96 Oct 2 2009 .audit
drwxr-xr-x 3 bin bin 96 Oct 2 2009 X11
drwxr-xr-x 16 adm adm 8192 Oct 28 15:59 adm
drwxrwxrwx 2 bin bin 96 Oct 2 2009 asx
drwxr-xr-x 4 root sys 8192 Oct 28 16:01 dt
drwxr-xr-x 2 root sys 96 Oct 2 2009 empty
dr-xr-xr-x 6 root root 96 Oct 2 2009 evm
drwxrwxrwt 2 bin bin 96 Oct 2 2009 home
drwxr-xr-x 4 root sys 96 Oct 2 2009 jail
drwxr-xr-x 2 root root 96 Oct 2 2009 lost+found
drwxrwxr-x 2 bin mail 96 Oct 27 20:20 mail
drwxrwxrwt 2 bin bin 96 Oct 2 2009 news
dr-xr-xr-x 2 root bin 96 Dec 15 2009 nfs
dr-xr-xr-x 4 root bin 96 Oct 2 2009 nfs4
dr-xr-xr-x 35 bin bin 8192 Dec 18 2009 opt
drwxrwxrwt 2 bin bin 96 Oct 2 2009 preserve
dr-xr-xr-x 3 bin bin 8192 Oct 28 16:00 run
dr-xr-xr-x 12 bin bin 8192 Mar 1 2010 sam
dr-xr-xr-x 12 bin bin 8192 Dec 15 2009 spool
drwxr-xr-x 4 daemon daemon 96 Dec 15 2009 statmon
drwxr-xr-x 6 root other 96 Dec 16 2009 stm
drwxrwxrwt 37 root root 8192 Nov 16 21:42 tmp
drwxrwxr-x 2 root other 96 Aug 26 2010 tombstones
dr-xr-xr-x 6 bin bin 96 Oct 2 2009 uucp
drwxr-xr-x 2 bin bin 8192 Oct 2 2009 yp
不想扩空间了,就问一下各位,如何把这个目录下没用的文件给删了?
/dev/vg00/lvol8 10485760 10394944 90816 99% /var
:/var#ls -l
total 128
drwxr-xr-x 2 root sys 96 Oct 2 2009 .audit
drwxr-xr-x 3 bin bin 96 Oct 2 2009 X11
drwxr-xr-x 16 adm adm 8192 Oct 28 15:59 adm
drwxrwxrwx 2 bin bin 96 Oct 2 2009 asx
drwxr-xr-x 4 root sys 8192 Oct 28 16:01 dt
drwxr-xr-x 2 root sys 96 Oct 2 2009 empty
dr-xr-xr-x 6 root root 96 Oct 2 2009 evm
drwxrwxrwt 2 bin bin 96 Oct 2 2009 home
drwxr-xr-x 4 root sys 96 Oct 2 2009 jail
drwxr-xr-x 2 root root 96 Oct 2 2009 lost+found
drwxrwxr-x 2 bin mail 96 Oct 27 20:20 mail
drwxrwxrwt 2 bin bin 96 Oct 2 2009 news
dr-xr-xr-x 2 root bin 96 Dec 15 2009 nfs
dr-xr-xr-x 4 root bin 96 Oct 2 2009 nfs4
dr-xr-xr-x 35 bin bin 8192 Dec 18 2009 opt
drwxrwxrwt 2 bin bin 96 Oct 2 2009 preserve
dr-xr-xr-x 3 bin bin 8192 Oct 28 16:00 run
dr-xr-xr-x 12 bin bin 8192 Mar 1 2010 sam
dr-xr-xr-x 12 bin bin 8192 Dec 15 2009 spool
drwxr-xr-x 4 daemon daemon 96 Dec 15 2009 statmon
drwxr-xr-x 6 root other 96 Dec 16 2009 stm
drwxrwxrwt 37 root root 8192 Nov 16 21:42 tmp
drwxrwxr-x 2 root other 96 Aug 26 2010 tombstones
dr-xr-xr-x 6 bin bin 96 Oct 2 2009 uucp
drwxr-xr-x 2 bin bin 8192 Oct 2 2009 yp
作者: spyself 发布时间: 2011-11-16
adm目录存放一些日志文件,没用的话可以删除。
作者: haso 发布时间: 2011-11-16
du -max /var |sort -rn |more显示一下啊
作者: 老农 发布时间: 2011-11-16
呵呵,记得先备份哦。。。。。。。。。。
作者: aruo80 发布时间: 2011-11-16