Disco y almacenamientoCLI Manual
$df
Report file system disk space usage across mounted storage partitions.
Sintaxis del comandoPOSIX Standard
df [OPTIONS] [FILE...]Prueba en vivo en la terminal interactiva
Simulación del lado del cliente sin instalación y con respuesta inmediata.
bash — terminal
AST Sandbox (Free)
Descripción general y funcionamiento
`df` (Disk Free) analyzes mounted filesystems to display total disk capacity, used space, available free space, and mount points. It is the first command sysadmins run when encountering "No space left on device" errors.
Opciones y banderas comunes
| Flag / Option | Description |
|---|---|
| -h, --human-readable | Print sizes in human-readable powers of 1024 (e.g., 10G, 500M). |
| -T, --print-type | Include filesystem type column (ext4, xfs, btrfs, tmpfs). |
| -i, --inodes | Display inode usage statistics instead of block usage. |
Ejemplos prácticos del mundo real
#1Check human-readable disk space
Displays disk usage for all mounted partitions with readable GB/MB units.