Skip to Content
gnux

-h, --human-readable

Print sizes in powers of 1024 (e.g., 1023M).

An option of dfx.

Usage

dfx -h [FILE]...
dfx --human-readable [FILE]...

Details

ShortLongValueDefaultMeaning
-h--human-readablenoneprint sizes in powers of 1024 (e.g., 1023M)

Examples

Your laptop warned that the disk is almost full: see every volume's usage as a bar, the full ones in red

dfx -h

See at a glance how full every disk is

dfx -h
Output
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  469G  301G  145G  68% /
/dev/nvme0n1p1  511M  6.1M  505M   2% /boot/efi
/dev/sda1       1.8T  1.6T  163G  91% /mnt/backup

Before a 20 GB download, check the free space where it will land

dfx -h ~/Downloads
Output
Filesystem      Size  Used Avail Use% Mounted on
/dev/nvme0n1p2  469G  301G  145G  68% /

Show only real local disks, with their file system types

dfx -hlT
Output
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/nvme0n1p2 ext4  469G  301G  145G  68% /

Total the space across all local disks

dfx -hl --total

Check only the network shares

dfx -h -t nfs -t cifs

Leave temporary file systems out of the report

dfx -h -x tmpfs -x devtmpfs

Help in the terminal

gnux help dfx --human-readable

On this page