PYDF(1)
πΎ PYDF β like df but make it fashion π
okay bestie, gather round, because pydf is about to become your new main character. it's a little program (from the General Commands Manual section, iykyk) that tells you how much disk space is left on your mounted filesystems, and it does it in colours, one colour per filesystem type, because we deserve nice things. π
β¨ NAME β¨
pydf β report colourised filesystem disk space usage π¦
π«Ά SYNOPSIS π«Ά
pydf [options] [file]
π DESCRIPTION π
pydf is a python script, no cap. it shows you how much disk space is available on all your mounted filesystems, and it uses different colours for different types of filesystems so you can tell them apart at a glance. and the best part? the output format is completely customizable. you can make it look however you want. obsessed. β¨
and like, if you pass it an optional file argument? it stops doing the whole-everything thing and just shows you info about the filesystem(s) that contain that file (or those files). no file argument, no problem β then it shows you info about all mounted filesystems. periodt. π
πΈ OPTIONS πΈ
--helpβ shows you a lil summary of the options. your cheat sheet bestie. π-v,--versionβ shows the version of the program. flex the build. π-a,--allβ include filesystems that have0blocks. yes, even the empty ones. nobody gets left out. π«Ά-h,--human-readableβ prints sizes in human readable format (e.g.,133K2341M2448G). for when you don't wanna read raw numbers like a calculator. π-H,--siβ likewise, but use powers of1000not1024. metric girlies rise. π--block-size=SIZEβ use SIZE-byte blocks. you pick the unit, you're the boss. π-k,--kilobytesβ like--block-size=1024. β¨-i,--inodesβ show information about inodes instead of blocks. different metric, same drama. π¦-l,--localβ limit the listing to local filesystems only. no network nonsense today. π«-m,--megabytesβ like--block-size=1048576. π-g,--gigabytesβ like--block-size=1073741824. big numbers energy. π₯--blocksβ use the filesystem's native block size. au naturel. πΏ--bwβ do not use colours. (sad, but sometimes you need it. it's giving monochrome.) π--mounts=FILEβ the file to get mount information from. on a normal linux system, only/etc/mtabor/proc/mountsmake sense. use/proc/mountswhen/etc/mtabis corrupted or inaccessible β though ngl, the output looks a bit weird in this case. π-B,--show-bindsβ also showmount --bindmounted filesystems. show me everything. π-S,--scale-barsβ show bar sizes scaled to the largest filesystem size. proportional slay. π
π BUGS π
okay so this is the messy part, and you need to know it.
POSIX mandates that f_blocks and f_bfree be the number in units of f_frsize. however β and this is the tea β β many programs are buggy, including df(1) from coreutils, and the Linux kernel often lies and reports f_frsize == f_bsize. some filesystems and some other operating systems don't do that, and when that happens, the size reported by pydf is incorrect. π
as a stopgap measure, there's a parameter called statvfs_block in /etc/pydfrc where you can force f_frsize or f_bsize. use it. trust. π«Ά
π FILES π
/etc/pydfrcβ main configuration file π~/.pydfrcβ per-user configuration file π
π₯ SEE ALSO π₯
df(1)β the classic. we still love her. π«Ά
π AUTHOR π
Radovan GarabΓk <garabik@kassiopeia.juls.savba.sk> β thank you for this gift, king. πβ¨
and that's the whole vibe check, bestie. this page lives in the General Commands Manual section and it's filed under PYDF(1) β so go forth, run pydf, and admire your filesystems in full colour. ππ no cap, you're gonna be obsessed. ππ¦π
π¦ where this page comes from
- ubuntu resolute: pydf 16-1 Β· public_domain
- ubuntu stonking: pydf 16-1 Β· public_domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms