快清理你的Unix操作系统吧
2、 再执行命令 ls –al | grep ^- |more 就可以看见每个文件的大校
-bash-3.00# ls -al | grep ^-|more
-rw------- 1 root root 810 Apr 29 09:59 .ICEauthority
-rw------- 1 root root 98 Apr 29 09:59 .Xauthority
-rw------- 1 root root 730 Apr 30 07:52 .bash_history
-rwxr-xr-x 1 root root 5111 Apr 29 08:30 .dtprofile
-rw-r--r-- 1 root root 81 Apr 29 08:30 .gtkrc-1.2-gnome2
-rw------- 1 root root 0 Apr 29 08:30 .recently-used
-rw-r--r-- 1 root root 681090961 Feb 28 12:29 10202_database_solx
86.zip
……….(省略若干)
-rw-r--r-- 1 root root 3069440 Apr 29 11:31 tar-1.16-sol10-x86-lo
cal
-rw-r--r-- 1 root root 10895360 Oct 22 2006 tar-1.16.tar
-rw-r--r-- 1 root root 155985 Jul 3 2006 vsftpd-2.0.5.tar.gz
-bash-3.00#
最大文件的信息,它的文件名是10202_database_solx86.zip,再用命令du –h 10202_database_solx86.zip可直接显示它的大小为650M。
-bash-3.00# du -h 10202_database_solx86.zip
650M 10202_database_solx86.zip
3、移走或删除占用空间的大文件。
大家看一看,找大文件是不是很简单?!当然如果使用awk这样的工具写shell脚本更是方便的法门,还有一个方法是用find加选项 –size,请大家自己去试验。
这样,我们再来看看我们的Unix操作系统,是不是就不那么拥挤了呢!
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)
