Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1038346
  • 博文数量: 836
  • 博客积分: 43880
  • 博客等级: 大将
  • 技术积分: 5485
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-20 17:36
文章分类

全部博文(836)

文章存档

2011年(1)

2008年(835)

我的朋友

分类: LINUX

2008-08-20 18:21:15


主要涉及df、du、ls等命令 df统计文件系统的使用情况。 英文说明: ThismanualpagedocumentstheGNUversionofdf.dfdisplaystheamountofdiskspaceavailableonthefilesystemcontainingeachfilenameargument.Ifnofilenameisgiven,thespaceavailableonallcurrentlymountedfilesystemsisshown.Diskspaceisshownin1Kblocksbydefault,unlesstheenvironmentvariablePOSIXLY_CORRECT isset,inwhichcase512-byteblocksareused. Ifanargumentistheabsolutefilenameofadiskdevicenodecontainingamountedfilesystem,dfshowsthespaceavailableonthatfilesystemratherthanonthefilesystemcontainingthedevicenode(whichisalwaystherootfilesystem).Thisversionofdfcannotshowthespaceavailableonunmountedfilesystems,becauseonmostkindsofsystemsdoingsorequiresverynonportableintimateknowledgeoffilesystemstructures. 要点如下: 如果不加参数,显示现在加载的文件系统。默认单位1K-blocks。如果设置了POSIXLY_CORRECT,则以512-byteblocks为单位。该命令针对文件系统,而不是目录,尽管的给的参数可以是目录。 主要参数: 空显示现在加载的文件系统,不包含0块空间 -a包含0块空间 -h易读方式 -kkB为单位 -l本地 -T显示文件系统类型 --sync返回结果前调用sync命令(有什么用呢?) 实例: [root@Mother_FLASH~]#df Filesystem1K-blocksUsedAvailableUse%Mountedon /dev/md0288265561507948258542926%/usr /dev/md1192204369153312909078051%/var /dev/ram1158667850327363554%/ /dev/shm1037388010373880%/dev/shm [root@Mother_FLASH~]#df-ah FilesystemSizeUsedAvailUse%Mountedon /dev/md028G1.5G25G6%/usr /dev/md119G8.8G8.7G51%/var /dev/ram1155M84M72M54%/ /dev/proc000-/proc /dev/sys000-/sys /dev/devpts000-/dev/pts /dev/shm1014M01014M0%/dev/shm none000-/proc/sys/fs/binfmt_misc 详细的参考: -a,--all includefilesystemshaving0blocks -B,--block-size=SIZEuseSIZE-byteblocks -h,--human-readable printsizesinhumanreadableformat(e.g.,1K234M2G) -H,--si likewise,butusepowersof1000not1024 -i,--inodes listinodeinformationinsteadofblockusage -klike--block-size=1K -l,--local limitlistingtolocalfilesystems --no-sync donotinvokesyncbeforegettingusageinfo(default) -P,--portability usethePOSIXoutputformat --syncinvokesyncbeforegettingusageinfo -t,--type=TYPE limitlistingtofilesystemsoftypeTYPE -T,--print-type printfilesystemtype -x,--exclude-type=TYPE limitlistingtofilesystemsnotoftypeTYPE -v(ignored) --helpdisplaythishelpandexit --version outputversioninformationandexit SIZEmaybe(ormaybeanintegeroptionallyfollowedby)oneoffollowing:kB1000,K1024,MB1000*1000,M 1024*1024,andsoonforG,T,P,E,Z,Y. df统计每一目录的使用情况。 主要参数: 空显示现在加载的文件系统,不包含0块空间 -a统计所有目录和文件,包含隐藏的 -s只产生一个统计信息 -kkB为单位 -h易读方式 -L不计算符号连接 -M以M为单位。 详细参考 -a,--all writecountsforallfiles,notjustdirectories --apparent-size printapparentsizes,ratherthandiskusage;althoughtheapparentsizeisusuallysmaller,itmaybe largerduetoholesin(â
阅读(411) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~