Forrest logo
back to the df tool

df:ai:ce0e0

How can I get the free disk space of the current machine?
$ df --output=avail --total --json
try on your machine

Displays free disk space in JSON format with the 'avail' field representing available space and 'total' field representing total space.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • How can I get the free disk space of the current machine?
back to the df tool