查看使用空间
[root@hnmtvcrm ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
239G 226G 0 100% /
/dev/cciss/c0d0p1 99M 13M 82M 14% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/VG001-lv005
712G 314G 362G 47% /app_crm
查看磁盘结构
[root@hnmtvcrm ~]# fdisk -l
Disk /dev/sda: 800.0 GB, 800000000000 bytes
255 heads, 63 sectors/track, 97261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 97261 781248951 8e Linux LVM
Disk /dev/sdb: 1198.3 GB, 1198375747584 bytes
255 heads, 63 sectors/track, 145694 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 60789 488287611 8e Linux LVM
/dev/sdb2 60790 121578 488287642+ 8e Linux LVM
Disk /dev/cciss/c0d0: 299.9 GB, 299966445568 bytes
255 heads, 63 sectors/track, 36468 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 36468 292824787+ 8e Linux LVM
当前目录的大小:
[root@hnmtvcrm ~]# du -sh .
585M .
目录下所有文件或目录大小
[root@hnmtvcrm ~]# du -sh *
8.0K anaconda-ks.cfg
584M Desktop
4.0K free_mem.sh
24K GD-NGBSS_VER1.6.254(2011-08-22).zip
64K install.log
12K install.log.syslog
查找超过1M的文件
[root@hnmtvcrm ~]# find . -type f -size +1000k
./Desktop/GD-NGBSS_VER1.6.254(2011-08-22).zip