Skip to content

linux磁盘空间满了怎么办?

03-Feb-10

首先你要确定是不是真正的是因为数据空间占满磁盘,经常是因为某个程序的日志占满了空间。当发现磁盘满了以后不要着急,使用以下命令从根目录开始排除查找哪个文件夹最大:
du --max-depth=1
找到最大的目录后,进入目录再执行上面的命令,逐步就找到大空间的文件夹了,如果是日志文件删除了就可以了。
下面是du命令的详细用法:

用法:du [选项]... [文件]...
或:du [选项]... --files0-from=F
总结每个<文件>的磁盘用量,目录则取总用量。

长选项必须用的参数在使用短选项时也是必须的。
-a, --all write counts for all files, not just directories
--apparent-size print apparent sizes, rather than disk usage; although
the apparent size is usually smaller, it may be
larger due to holes in (`sparse') files, internal
fragmentation, indirect blocks, and the like
-B, --block-size=SIZE use SIZE-byte blocks
-b, --bytes equivalent to `--apparent-size --block-size=1'
-c, --total produce a grand total
-D, --dereference-args dereference FILEs that are symbolic links
--files0-from=F summarize disk usage of the NUL-terminated file
names specified in file F
-H like --si, but also evokes a warning; will soon
change to be equivalent to --dereference-args (-D)
-h, --human-readable print sizes in human readable format (e.g., 1K 234M 2G)
--si like -h, but use powers of 1000 not 1024
-k like --block-size=1K
-l, --count-links count sizes many times if hard linked
-m like --block-size=1M
-L, --dereference dereference all symbolic links
-P, --no-dereference don't follow any symbolic links (this is the default)
-0, --null end each output line with 0 byte rather than newline
-S, --separate-dirs do not include size of subdirectories
-s, --summarize display only a total for each argument
-x, --one-file-system skip directories on different file systems
-X FILE, --exclude-from=FILE Exclude files that match any pattern in FILE.
--exclude=PATTERN Exclude files that match PATTERN.
--max-depth=N print the total for a directory (or file, with --all)
only if it is N or fewer levels below the command
line argument; --max-depth=0 is the same as
--summarize
--time show time of the last modification of any file in the
directory, or any of its subdirectories
--time=WORD show time as WORD instead of modification time:
atime, access, use, ctime or status
--time-style=STYLE show times using style STYLE:
full-iso, long-iso, iso, +FORMAT
FORMAT is interpreted like `date'
--help 显示此帮助信息并退出
--version 输出版本信息并退出

[大小]可以是以下的单位(单位前可加上整数):
kB 1000,K 1024,MB 1000000,M 1048576,还有 G、T、P、E、Z、Y。

linux 磁盘满了 删除(1)

付费寻找网页美化

30-Jan-10

美化一个网页的局部,网址:http://item.taobao.com/auction/i … fde7b1f2beda4.jhtml
这个淘宝商品描述最下边的“相关商品”区域进行美化,需要多个风格的模板!

有能力的QQ联系我6232487
注明:网页美化


svn: REPORT 请求“/!svn/vcc/default”失败 解决办法

25-Jan-10

svn提示这个错误,在Google搜索了个遍,有的说是引文svn版本太低的原因,有的说是服务器配置问题,我都没有解决了这个问题。后来想了一个办法,建立一个目录,重新检出程序,然后把这个目录下的文件覆盖到那个错误的目录,这时复制时需要复制隐藏文件,使用了下面的命令:

cp -r /home/abc/.[^.]* /home/def

然后:

svn update

那个错误消失了!

svn 方法REPORT失败于(1)svn error REPORT of !svn/vcc/default(2)svn: REPORT /!svn/(1)

Linux中cp总是提示覆盖文件的解决办法

25-Jan-10

把a目录下的文件复制到b目录
cp –r a/* b
执行上面的命令时,b存在的每个文件都会提示是否覆盖;
cp –r –f a/* b
执行上面的命令时,b存在的每个文件都不再会提示;
这是我们希望的理想状态,但是有时加了-f了,怎么还会有提示呢?原来一些服务器会默认增加别名 alias cp=’cp -i’,当你执行cp时,其实执行的是cp –i。
在终端执行alias就可以看出来了。
[root@devdb ~]# alias
alias cp=’cp -i’
可以这样解决
[root@devdb ~]# vi ~/.bashrc
在alias cp=’cp -i’前加上”#”注释掉这行,:wq!保存退出!

然后重新登陆就可以了。

linux 覆盖文件(1)linux 覆盖文件 ?(1)linux下cp提示是否覆盖(1)cp 覆盖(2)cp 覆盖存在的文件(1)linux cp 覆蓋(1)

Google退出中国的另外一个主要原因

17-Jan-10

Google退出中国的另外一个原因是:GOOGLE公司将在2010年开始推行全球卫星无线上网。当然主要原因还是审查制度破坏了其企业准则。下面是报道:

继推出“Google Chrome”浏览器后,搜寻引擎巨擘Google又再向网路上中下游整合之路迈进一步,9日与汇丰银行、国际有线电视集团“Liberty Global”合作,推出“O3b Networks”计划,锁定非洲及其他新兴市场的网路用户,提供卫星上网服务,进一步扩大网路使用者的数量。

“Ob Networks”意即“other3 billion (people )”(另外三十亿人口的网路 ),初步涵盖范围为赤道南北纬度各五度的区域。未来还将扩大到非洲、南美洲其他地区,以及亚洲和中东。

三家企业目前已各自出资两千万美金,加上媒体顾问公司“Allen & Company”的五百万美金,合计六千五百万美金;未来三家公司还可能继续投资一亿五千万美金到一亿八千万美金,最终投资金额可能高达七亿五千万美金。

“O3b Networks”初期将向卫星制造商“Thales Alenia Space”购买十六颗低轨道卫星,为区域内地面手机基地台提供连网服务。Google替代性连网部门经理阿德勒表示,这项计划在2010年启用后,将可使区域内的宽频上网费用降低九十五%。

有了卫星上网,谁还要中国的电信网络啊,都是垃圾,全部都会被淘汰!有了卫星上网,墙自然就不存在了,难道到时候ZF要在全中国的上空建立一个屏蔽墙么?

中国几千年内创造了四大发明,21世纪又创造了第5大发明 – GFW,其威力真是让世人瞩目啊!



http://www.pkphp.com/(2)php(14)google 中国(1)google推出中国(2)o3b 计划(1)O3b Networks google(2)o3b 卫星(1)谷歌推出中国 原因(4)Google、汇丰银行、国际有线电视集团(1)卫星上网费用(1)Google衛星上網(1)有线电视 上网(1)google 退出 进一步消息(1)谷歌推出中国的真正原因(1)google 推出中国的yuanyin(1)