Forrest logo
back to the df tool

df:ai:3f919

how can I check disk usage on / but ignore mounted filesystems?
$ df --output=target,pcent | grep '^/$'
try on your machine

This command uses the 'df' utility to display the disk usage of the root filesystem ('/') while filtering out any mounted filesystems.

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 check disk usage on / but ignore mounted filesystems?
back to the df tool