免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 778 | 回复: 0
打印 上一主题 下一主题

linux下的stat du df and devices [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-23 16:45 |只看该作者 |倒序浏览

               
               
                df
   display overall disk utlilization information for mounted filesystems on directories.usually,directories are device file for partition.such as /dev/hda1.but using another file or directories are yields information on the partition that holds the file or directory.if directories are omitted,information for mounted filesystems on all devices in /etc/fstab are displayed
df -h   display results in a human-readable format.
df -i   display information on remaining inodes rather than the default disk space information
df -m
df .  quitely determine which partition the current working directory

stat
  display file or filesystem status. include the midify time, size,block counts, inode counts and so on.
  example: stat /usr
  
du
  display disk utilization information for directories .
   -a show all files,not just directories
   -c produce a grand total for all listed items
   -h display results in a human-readable format, include suffixes such as M(megabytes) and G(gigabytes)
   -s prints a summary for each of the directories specified,instead of totals for each subdirectory found recursively
   example:
   du /etc/rc.d
   du -s /etc
   
devices linux filesystems and the filesystem hierarchy standard
IDE hard disk
/dev/hda   the primary master disk
/dev/hdb   primary slave disk
/dev/hdc   secondary master disk
/dev/hdd   secondary slave
SCSI hard disk (have 15 devices on a single bus)
/dev/sda
/dev/sdb
...........
a typical pc with a single hard disk on the primary IDE interface and a single CD_ROM on the second interface would have disk drive /dev/hda and CD_ROM /dev/hdc
on each disk in a pc, there may be between 1 and 16 partitions.1 to 12 logical partitions may be created. logical partition are numbered from 5 to 16. under this pc partitioning scheme. a maximum of 15 partitions with filesystems may exist on a single physical(3 primary plus 12 logical)


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/45689/showart_366188.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP