Linux Disk

From ElectroDragon Wiki
Revision as of 15:24, 29 May 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Disk

Category Command Description example example description
System-disk df check the size of disk df -h -h human read
System-disk du check size of folders du -sh /* -h human read -s conclusion

For LPI-Nano

# fdisk -l
Disk /dev/mmcblk0: 7536 MB, 7902068736 bytes, 15433728 sectors
241152 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes

Device       Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type
/dev/mmcblk0p1    0,32,33     2,42,40           2048      34815      32768 16.0M  c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2    2,42,41     25,126,37        34816     409599     374784  183M 83 Linux
Partition 2 does not end on cylinder boundary

Find large file

  • find . -type f -size +800M