Forrest logo
back to the du tool

du:ai:b901a

how can I check each directory filespace usage on / but ignore mounted filesystems?
$ du -h --max-depth=1 --one-file-system /
try on your machine

This command will display the disk usage of each directory under /, but will ignore any mounted filesystems to prevent counting their space usage in the output.

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 each directory filespace usage on / but ignore mounted filesystems?
back to the du tool