2024年3月21日发(作者:)

导致硬盘根目录满的原因有以下几点:

1、 find “core” files then delete them 该文件是非正常停运后产生的信息,无

调试程序看不到,故可删除。

# cd /

# find –name core –print (查看原有的core文件)

#file /core 查看core文件,确认是否保留该文件。

#rm /core_files 删除core文件

2、 find screen copyfiles then delete them ,该文件是屏幕硬拷贝文件故可删除。

# cd /

#find –name “sc*” –print(‘*sc’)

#rm screen_copy_files

3、 check /usr/wdpf/log/wdpf-message* 该为压缩文件需uncompress解压

缩后

if the file is very large ,do followings:

# cp /dev/null wdpf_message-file_name

this will blank the file but still keep the file name

4、 check /var/adm/message*

check /var/adm/wdpf-message*

check /var/log/ls_msg_log

确认这些文件不需要

do same thing as step 3

5、 check /var/spool/temp or /var/spool/lp/temp 未打印完的文件

check the files under this directory to see if an print file still in it ,remove large

files .

6、 check /var/cron/log

if it is large ,do #cp /dev/null log

7、 check /usr/wdpf/ls/pm/queues

该文件是打印序列文件,故可以删除。

8、 用户自己创建的文件

登录到超级用户,运行以下命令可以列出目录的大小

# cd /

#du –k