BSD / Linux - Some UNIX DISK Commands

8/13/99
CFDISK - Curses based Disk Partition Table manipulator
  DF - Summarize Disk Free Space
  DU - Summarize Disk Usage
FD - Floppy Disk Device Information
  FDFORMAT - Low-Level formats a floppy disk
FDISK - Disk Partition Table manipulator
FRAG - Simple Fragmentation Checker
HD - MFM/IDE Hard Disk Device Information
MFORMAT - Add an MSDOS filesystem to a low-level formatted diskette
MKFS - Build a Linux File System
MDKFS - Build a DOS File System
MLABEL - Make an MSDOS Volume Label
MOUNT - Mount and Unmount Filesystems
UMOUNT - Unmount a Filesystem
RAM - RAM Disk Device Information
SETFDPRM - Sets User-Provided Floppy Disk Parameters

FD - Floppy Disk Device Information



HD - MFM/IDE Hard Disk Device Information



RAM - RAM Disk Device Information



SETFDPRM - Sets User-Provided Floppy Disk Parameters



FDISK - Disk Partition Table manipulator



CFDISK - Curses based Disk Partition Table manipulator



  FDFORMAT - Low-Level formats a floppy disk



MFORMAT - Add an MSDOS filesystem to a low-level formatted diskette



MKFS - Build a Linux File System



MDKFS - Build a DOS File System



MLABEL - Make an MSDOS Volume Label



  df - Summarize Disk Free Space
df will produce the following typical output
Filesystem 1K-blocksUsedAvailableUse%Mounted on
/dev/hda41203743104131010024091%/
/dev/hda181824026449655374432%/dosc
-a Includes filesystems that have 0 blocks
-l Limit to local filesystems
-T Adds the type string for each filesystem
-h Produces a more human readable output (1.1G instead of 1041310)
df -T -a -h will produce the following typical output
FilesystemType1K-blocksUsedAvailableUse%Mounted on
/dev/hda4ext21.1G1017M98M91%/
noneproc0000%/proc
nonenfs0000%/net
/dev/hda1vfat799M258M541M32%/dosc

  du - Summarize Disk Usage
du will list the number of 1K blocks used in the current directory and each subdirectory under it.
du in the root directory will do this for all subdirectories - use with the more or less pipelines
Note that du of the root directory will also list the other mounted disk drives including floppies and CD-ROM's) unless you use du -x (one file system)

FRAG - Simple Fragmentation Checker



MOUNT - Mount and Unmount Filesystems



UMOUNT - Unmount a Filesystem




Up to Top of Page
Back to the LINUX home page...