Linux系统怎样清理垃圾文件

2024-11-15 06:12:19
推荐回答(1个)
回答(1):

var/log /tmp 目录下的文件都可以删除 然后使用一下命令

[root@www /]# du --max-depth=1
0 ./sys
24 ./mnt
16 ./lost+found
16 ./home
8 ./initrd
36 ./tmp
311944 ./var
96552 ./lib
2168 ./root
0 ./selinux
263012 ./proc
6314 ./boot
6124 ./bin
100 ./tftpboot
36276 ./etc
8 ./srv
8 ./misc
17704 ./sbin
216 ./dev
1434828 ./opt
24 ./media

3154664 ./usr
5330086 .

8.0K /var/log/quagga
8.0K /var/log/radius/radacct
52K /var/log/radius
24K /var/log/gdm
8.0K /var/log/ppp
44K /var/log/cups
8.0K /var/log/squid
16K /var/log/mail
8.0K /var/log/audit
88M /var/log
[root@www /]# du -h /tmp
12K /tmp/.font-unix
8.0K /tmp/.ICE-unix
28K /tmp
[root@www /]#