URN Logo
UNIX Resources » BSD » FreeBSD » FreeBSD China » 初学指南 » 86 » 请教磁盘空间调整问题
announcement 声明: 本页内容为FreeBSD China的内容镜像,文章的版权以及其他所有的相关权利属于FreeBSD China和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
freebsdchina.org
  中文文档计划
  Chinese Ports 讨论
  初学指南
  技术交流
  设备驱动
  WEB服务
  Proxy服务
  JAVA平台
  软件发布
  休闲话题
  静语轩
  系统编程
  脚本编程
  内核开发技术
  网络安全
  mail系统
  X-Win系统
  信息交流
  历史-文化-设计-实现
  安装-配置-优化-安全
  中文-桌面-开发-调试
   
请教磁盘空间调整问题
Subject: 请教磁盘空间调整问题
Author: smartleo    Posted: 2005-02-24 20:47:56    Length: 6917 byte(s)
[Original] [Print] [Top]
以下是我的机器磁盘情况:
NoteBSD# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 126M 122M -6.0M 105% /
/dev/ad0s1g 1.9G 640M 1.1G 35% /WorkArea
/dev/ad0s1f 252M 14K 232M 0% /tmp
/dev/ad0s1h 6.5G 2.5G 3.5G 42% /usr
/dev/ad0s1e 252M 100M 132M 43% /var
procfs 4.0K 4.0K 0B 100% /proc

NoteBSD# ls -l|more
total 234
-rw------- 1 root wheel 1859 Feb 3 2004 .ICEauthority
-rw-r--r-- 1 root wheel 22524 Feb 17 2004 .RealNetworks_RealMediaSDK_60
-rw-r--r-- 1 root wheel 1208 Feb 17 2004 .RealNetworks_RealPlayer_60
-rw-r--r-- 1 root wheel 71 Jan 11 2004 .RealNetworks_RealShared_00
drwx------ 2 root wheel 512 Feb 3 2004 .Trash
-rw------- 1 root wheel 155 Jan 10 2004 .Xauthority
-rw------- 1 root wheel 90 Jan 12 2004 .ab437201
-rw------- 1 root wheel 0 Jan 12 2004 .ab437202
drwxr-xr-x 2 root wheel 512 Jan 14 2004 .acrobat
-rw-r--r-- 1 root wheel 0 Jan 12 2004 .addressbook
-rw------- 1 root wheel 2285 Jan 12 2004 .addressbook.lu
drwx------ 2 root wheel 512 Jan 11 2004 .adobe
drwxr-xr-x 2 root wheel 512 Feb 17 2004 .assistant
-rw-r--r-- 2 root wheel 1054 Feb 24 16:21 .cshrc
-rw-r--r-- 1 root wheel 1053 Feb 24 16:13 .cshrc~
drwxr-xr-x 2 root wheel 512 Feb 17 2004 .designer
-rw------- 1 root wheel 238 Jan 19 2004 .dialdir
drwxr-xr-x 3 root wheel 512 Jan 28 2004 .emacs.d
-rw------- 1 root wheel 16 Jan 10 2004 .esd_auth
drwx------ 2 root wheel 512 Jan 10 2004 .fcitx
-rw-r--r-- 1 root wheel 0 Feb 3 2004 .fonts.cache-1
drwxr-xr-x 2 root wheel 512 Feb 15 2004 .fvwm
drwx------ 3 root wheel 512 Feb 24 16:04 .gaim
drwx------ 4 root wheel 512 Feb 24 20:25 .gconf
drwx------ 2 root wheel 512 Feb 24 20:25 .gconfd
drwx------ 3 root wheel 512 Feb 23 15:36 .gftp
drwx------ 6 root wheel 512 Jan 10 2004 .gnome
drwx------ 9 root wheel 2560 Feb 17 2004 .gnome2
drwx------ 2 root wheel 512 Jan 10 2004 .gnome2_private
drwxr-xr-x 2 root wheel 512 Jan 10 2004 .gstreamer-0.8
-rw------- 1 root wheel 45 Jan 11 2004 .gtk-bookmarks
-rw-r--r-- 1 root wheel 81 Jan 10 2004 .gtkrc-1.2-gnome2
-rw-r--r-- 1 root wheel 162 Feb 24 10:21 .gtkrc-2.0
-r--r--r-- 1 root wheel 436 Jan 11 2004 .gtkrc.mine
-r--r--r-- 1 root wheel 436 Jan 11 2004 .gtkrc.zh_CN
-rw-r--r-- 1 root wheel 91 Feb 21 2004 .gvimrc
-rw-r--r-- 1 root wheel 0 Feb 18 2004 .gvimrc~
-rw------- 1 root wheel 2411 Feb 24 20:10 .history
drwxr-xr-x 2 root wheel 512 Feb 24 16:02 .icewm
drwxr-xr-x 2 root wheel 512 Feb 17 2004 .icons
drwxr-xr-x 3 root wheel 512 Jan 10 2004 .kde
drwxr-xr-x 3 root wheel 512 Jan 10 2004 .kde2
-rw-r--r-- 1 root wheel 142 May 26 2004 .klogin
drwxr-xr-x 2 root wheel 512 Feb 24 16:45 .lftp
-rw-r--r-- 1 root wheel 341 Feb 3 2004 .login
-rw-r--r-- 1 root wheel 2716 Jan 11 2004 .mailcap
drwx------ 3 root wheel 512 Jan 10 2004 .metacity
-rw-r--r-- 1 root wheel 1112 Jan 11 2004 .mime.types
drwxr-xr-x 2 root wheel 512 Feb 23 14:09 .mlterm
drwx------ 4 root wheel 512 Feb 22 14:41 .mozilla
-rw-r--r-- 1 root wheel 2 Jan 10 2004 .msgsrc
drwxr-xr-x 3 root wheel 512 Jan 10 2004 .nautilus
drwxr-xr-x 3 root wheel 512 Jan 10 2004 .netscape
drwxr-xr-x 3 root wheel 512 Jan 10 2004 .netscape6
-rw-r--r-- 1 root wheel 60 Jan 10 2004 .padminrc
drwxr-xr-x 3 root wheel 512 Feb 24 14:10 .phoenix
-rw-r--r-- 2 root wheel 362 Feb 8 2004 .profile
drwxr-xr-x 2 root wheel 512 Jan 10 2004 .qt
-rw-r--r-- 1 root wheel 257 Feb 18 2004 .qtorrent.history
-rw------- 1 root wheel 4774 Feb 2 2004 .recently-used
drwx------ 2 root wheel 512 Jan 14 2004 .ssh
-rw-r--r-- 1 root wheel 68 Jan 10 2004 .sversionrc
drwx------ 4 root wheel 512 Jan 10 2004 .thumbnails
-rw-r--r-- 1 root wheel 2048 Jan 11 2004 .user60.rdb
-rw------- 1 root wheel 15892 Feb 24 20:21 .viminfo
-rw-r--r-- 1 root wheel 2904 Jan 19 2004 .vimrc
-rwxr-xr-x 1 root wheel 155 Feb 17 2004 .xinitrc
-rw-r--r-- 1 root wheel 14886 Feb 23 09:23 .xnviewrc
-rwxr-xr-x 1 root wheel 81 Feb 17 2004 .xsession
drwxr-xr-x 4 root wheel 512 Feb 21 2004 Choices
drwxr-xr-x 2 root wheel 512 Feb 18 2004 Desktop
-rw-r--r-- 1 root wheel 9732 Jan 11 2004 GENERIC.bak
drwx------ 4 root wheel 512 Feb 3 2004 Mail
-rw-r--r-- 1 root wheel 4150 Jan 10 2004 XF86Config.new
drwx------ 2 root wheel 512 Jan 12 2004 mail
-rw------- 1 root wheel 15084 Feb 16 2004 mbox
-rw------- 1 root wheel 1153 Jan 16 2004 ppp.conf

NoteBSD# pwd
/
NoteBSD# ls -l
total 8649
-rw-r--r-- 2 root wheel 1054 Feb 24 16:21 .cshrc
-rw-r--r-- 2 root wheel 362 Feb 8 2004 .profile
-r--r--r-- 1 root wheel 6355 May 26 2004 COPYRIGHT
drwxr-xr-x 20 root wheel 2048 Feb 23 14:47 WorkArea
drwxr-xr-x 2 root wheel 1024 Jan 10 2004 bin
drwxr-xr-x 3 root wheel 512 Jan 10 2004 boot
drwxr-xr-x 2 root wheel 512 Jan 10 2004 cdrom
lrwxr-xr-x 1 root wheel 10 Jan 10 2004 compat -> usr/compat
drwxr-xr-x 4 root wheel 20480 Feb 24 20:22 dev
drwxr-xr-x 2 root wheel 512 Jan 10 2004 dist
drwxr-xr-x 16 root wheel 2048 Feb 24 20:21 etc
-rw-r--r-- 1 root wheel 0 Jan 13 2004 etc.
lrwxrwxrwx 1 root wheel 9 Jan 10 2004 home -> /usr/home
-r-xr-xr-x 1 root wheel 4343925 May 26 2004 kernel
-r-xr-xr-x 1 root wheel 4343925 May 26 2004 kernel.GENERIC
drwxr-xr-x 4 root wheel 512 Feb 6 2004 mnt
drwxr-xr-x 2 root wheel 4608 Jan 10 2004 modules
dr-xr-xr-x 1 root wheel 512 Feb 24 20:39 proc
drwxr-xr-x 37 root wheel 2048 Feb 24 20:24 root
drwxr-xr-x 2 root wheel 2048 Jan 10 2004 sbin
drwxr-xr-x 4 root wheel 1024 Jan 10 2004 stand
lrwxrwxrwx 1 root wheel 11 Jan 10 2004 sys -> usr/src/sys
-rw------- 1 root wheel 39685 Feb 18 2004 tm
drwxrwxrwt 4 root wheel 512 Feb 24 20:24 tmp
drwxr-xr-x 20 root wheel 512 May 26 2004 usr
drwxr-xr-x 21 root wheel 512 May 26 2004 var
请教高手我该怎么调整/目录下的文件,谢谢啦!
[Original] [Print] [Top]
Subject: (空)
Author: jayvan    Posted: 2005-02-24 21:36:43    Length: 44 byte(s)
[Original] [Print] [Top]
无非是你的 root 账号的个人配置文件太多而已。
----
[Original] [Print] [Top]
Subject: (空)
Author: smartleo    Posted: 2005-02-24 21:43:28    Length: 26 byte(s)
[Original] [Print] [Top]
配置文件还能放在别的目录吗
[Original] [Print] [Top]
Subject: (空)
Author: jayvan    Posted: 2005-02-25 09:11:08    Length: 541 byte(s)
[Original] [Print] [Top]
smartleo 写到:
配置文件还能放在别的目录吗


关键是有不少垃圾可以清掉。
而且,一般的说法是没特别必要的时候不建议用 root 来操作。
按你这种玩法,本身应该将 / 分大点的。
现在你应该将不用的配置文件删掉。例如,不用 fvwm 了就删掉 /root/.fvwm,不用 kde 了就删掉 /root/.kde
你留那么多 wm 的个人设定文件在干嘛呢?
----
[Original] [Print] [Top]
Subject: (空)
Author: smartleo    Posted: 2005-02-25 09:15:07    Length: 12 byte(s)
[Original] [Print] [Top]
o,谢谢指点!
[Original] [Print] [Top]
Subject: (空)
Author: smartleo    Posted: 2005-02-25 23:23:40    Length: 45 byte(s)
[Original] [Print] [Top]
再次请教,那些目录直接影响/目录的大小?谢谢!
[Original] [Print] [Top]
Subject: (空)
Author: jayvan    Posted: 2005-02-26 08:47:05    Length: 334 byte(s)
[Original] [Print] [Top]
smartleo 写到:
再次请教,那些目录直接影响/目录的大小?谢谢!


你可以用 du 来看。
例如在你的 /root 下, du -hd1
----
[Original] [Print] [Top]
Subject: (空)
Author: smartleo    Posted: 2005-02-28 11:21:16    Length: 77 byte(s)
[Original] [Print] [Top]
非常感谢! Laughing
[Original] [Print] [Top]
« Previous thread
请问libm.so.2是哪个ports里面包含的?困扰我好久了~~
初学指南
86
Next thread »
我要在一台DELL的1850服务器上安freebsd。4.11还是5.3?
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2007-07-26 13:31:47, cost 0.016488075256348 ms.