Forrest logo
back to the btrfs tool

btrfs-filesystem:tldr:b0898

btrfs-filesystem: Show filesystem usage (optionally run as root to show detailed information).
$ btrfs filesystem usage ${path-to-btrfs_mount}
try on your machine

The command btrfs filesystem usage ${path-to-btrfs_mount} is used to display the disk space usage statistics of a Btrfs file system.

Here's an explanation of the command and its components:

  • btrfs: This is the command-line utility for managing Btrfs file systems.

  • filesystem usage: It is a subcommand of btrfs used to display space usage information of a Btrfs file system.

  • ${path-to-btrfs_mount}: Specifies the path or mount point of the Btrfs file system for which you want to view the usage statistics. Replace ${path-to-btrfs_mount} with the actual path to the Btrfs mount point in your system.

When you run this command, it will provide a summary of the disk space usage information for the specified Btrfs file system. This includes details like the total size, used space, free space, and data and metadata allocation information.

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.
back to the btrfs tool