function df { /usr/bin/df --output=target,source,fstype,size,used,pcent,avail -kh $1|grep -v ^none|(read header;echo "$header";sort) }

A ajouter dans un fichier ~/.profile (bash), ~/.zshrc (zsh) ou de manière globale /etc/zsh/zshrc (zsh).

Permet d’obtenir au final ce layout épuré :

23:42 root@jupiter ~# df
Monté sur             Sys. de fichiers Type     Taille Utilisé Uti% Dispo
/                     /dev/sdc2        ext4        63G    5,8G  10%   54G
/boot                 /dev/sdc1        vfat       511M     73M  15%  439M
/dev                  dev              devtmpfs    16G       0   0%   16G
/home                 /dev/sdc4        ext4       493G    317G  68%  151G
/mnt/external/backups /dev/sdl1        ext4       1,8T    428G  25%  1,3T
/mnt/external/usb1    /dev/sdb1        ext4       4,6T    4,5T 100%   19G
/mnt/external/usb2    /dev/sdh1        ext4       4,6T    4,3T  95%  273G
/mnt/external/usb4    /dev/sda1        ext4       4,6T    4,2T  98%   94G
/mnt/external/usb5    /dev/sdn1        ext4       7,3T    3,9T  56%  3,1T
/mnt/internal/raid    /dev/md0         ext4        11T     11T 100%  106G
/mnt/internal/sata    /dev/sde1        ext4       1,8T    1,8T 100%  3,9G

Plutôt que celui ci-dessous avec la commande par défaut, layout que personnellement j’avais fini par trouver totalement illisible :

23:43 root@jupiter ~# /usr/bin/df
Sys. de fichiers blocs de 1K     Utilisé Disponible Uti% Monté sur
dev                 16313868           0   16313868   0% /dev
run                 16317628        1900   16315728   1% /run
/dev/sdc2           65407772     6022620   56039592  10% /
tmpfs               16317628           0   16317628   0% /dev/shm
tmpfs               16317628           0   16317628   0% /sys/fs/cgroup
/dev/sdl1         1922720024   448661036 1376366928  25% /mnt/external/backups
/dev/sde1         1922727280  1918725096    3985800 100% /mnt/internal/sata
/dev/sdb1         4845159136  4825294540   19848212 100% /mnt/external/usb1
/dev/sdh1         4845159136  4559235464  285907288  95% /mnt/external/usb2
/dev/sda1         4844900300  4502960848   97747648  98% /mnt/external/usb4
tmpfs               16317628          32   16317596   1% /tmp
/dev/sdc1             523248       74324     448924  15% /boot
/dev/md0         11628569336 11517548972  111003980 100% /mnt/internal/raid
/dev/sdc4          516106664   332043060  157823812  68% /home
tmpfs                3263524           0    3263524   0% /run/user/0
/dev/sdn1         7751107352  4098677856 3261724892  56% /mnt/external/usb5
/dev/dm-3           10474496       48512   10425984   1% /var/lib/docker/devicemapper/mnt/816b48fb55aab8b9a56193d002be280c55e82b15e688c2e9a25070094135f84d
shm                    65536           0      65536   0% /var/lib/docker/containers/3b861d0a051b69695188265b075ee15b9ff6b660184be34a64509c92b8659610/shm
/dev/dm-4           10474496      129808   10344688   2% /var/lib/docker/devicemapper/mnt/8288534225b432c1a033c034f3a463bc598949713e8e21c2a9fa0a4427ad6d86
shm                    65536           0      65536   0% /var/lib/docker/containers/579936afeac60d1e3b06781255831513c06f7722e5bd4e7d77377e95d5217f75/shm
/dev/dm-5           10474496      699872    9774624   7% /var/lib/docker/devicemapper/mnt/82e3004f1ebe52589e0e57aa077bf9d6343b6cf740ea1f76eb31648b8d96322f
shm                    65536           0      65536   0% /var/lib/docker/containers/1ccd3aadb6b5202dce22b5b3a4a8624f74cac07f1e9add6e4c5a7f21f599aa10/shm
/dev/dm-6           10474496       69720   10404776   1% /var/lib/docker/devicemapper/mnt/0616474a299447a08adda73897950a22ff385bb47ffa0b924915bfcac721a180
shm                    65536           0      65536   0% /var/lib/docker/containers/c8f98094d669ea578c6ab862c908db08ba3de117a1848f2366be8cb2399c6221/shm
/dev/dm-7           10474496       67672   10406824   1% /var/lib/docker/devicemapper/mnt/29f9b084960298fa28a94928abfdf6c1823d06eecd69b67985d39157f2653a02
shm                    65536           0      65536   0% /var/lib/docker/containers/125af9cc3293a50a12ef4aa5ede0ed64e59f60ac97f0f1089d2d0e7f8ea8ca42/shm
/dev/dm-8           10474496      626084    9848412   6% /var/lib/docker/devicemapper/mnt/e60af17baf0e563f15784a7fd509943605047b9df5b3abad07063a36c528fd58
shm                    65536           0      65536   0% /var/lib/docker/containers/52ceaa2e7406204c4e23cc168865307fa293f35d024eb859afe8246ef53cce1c/shm
/dev/dm-9           10474496      128212   10346284   2% /var/lib/docker/devicemapper/mnt/dd346c126179221126bc220951ee36ce21adc709f65db275a06fcafe436bbb22
shm                    65536           0      65536   0% /var/lib/docker/containers/8153751187bc4a14dc23ca41cd66272ec1afe2ec165cd37139e6b16130cd0056/shm
/dev/dm-10          10474496      679900    9794596   7% /var/lib/docker/devicemapper/mnt/e17c154cb2265cc557a8fa36dbc20f3c58cdb8a3ae81a28cdc4960bf3324f220
shm                    65536           4      65532   1% /var/lib/docker/containers/df690e4f226fe0769f01f91557755465091ae6f42963634998ff25e6f66f380a/shm
/dev/dm-11          10474496     1320436    9154060  13% /var/lib/docker/devicemapper/mnt/34d0131725296834599d7596bd00cbe9c426d6bc0f5ec1a8133b53c988d58421
shm                    65536           0      65536   0% /var/lib/docker/containers/71d0195531f7ec32b27c25a831d44c13469258e2f0be0552a7691e2826c6366a/shm
/dev/dm-12          10474496       48944   10425552   1% /var/lib/docker/devicemapper/mnt/8bcafd3c4321da6fd589fd65f12b024aaa5554fbd51ed8624c6a3100a8ee573b
shm                    65536           0      65536   0% /var/lib/docker/containers/05385a812cb6d47352fef0b5b99de602ae187bc8d228d8236133762be2243556/shm
/dev/dm-13          10474496      265484   10209012   3% /var/lib/docker/devicemapper/mnt/420e2fa7882ca5b29ef960f15fd328f97d2fc92a8c7cb8a63da8353a5afdb5de
shm                    65536           0      65536   0% /var/lib/docker/containers/35b78cfdc431ec44521aca878170ab707e2fa5fe7ad00949272c9c36a4d8a663/shm
/dev/dm-14          10474496      366408   10108088   4% /var/lib/docker/devicemapper/mnt/463d00b90c276e5dbaa4f719368641b60f912b84d7c92eff93b2c2cb82ea64e2
shm                    65536           0      65536   0% /var/lib/docker/containers/0aec64cc23fe60575156f0840fab584449af7674c36b29780c860ae5817ed867/shm

La fonction permet toujours bien sûr de raffiner un chemin quelconque (par exemple le path courant via df .).

Pour annuler son usage sur un appel ponctuel, il suffit bien sûr de lancer le binaire lui même via /usr/bin/df.