← flaviocopes.com

Linux commands: df

Published Oct 07 2020

Psssst! The 2023 WEB DEVELOPMENT BOOTCAMP is starting on FEBRUARY 01, 2023! SIGNUPS ARE NOW OPEN to this 10-weeks cohort course. Learn the fundamentals, HTML, CSS, JS, Tailwind, React, Next.js and much more! ✨

The df command is used to get disk usage information.

Its basic form will print information about the volumes mounted:

Using the -h option (df -h) will show those values in a human-readable format:

You can also specify a file or directory name to get information about the specific volume it lives on:

The df command works on Linux, macOS, WSL, and anywhere you have a UNIX environment

I write books for developers 👇🏼

© 2023 Flavio Copes Flavio Copes made in Italy 🇮🇹 using Notion to Site Notion to Site