Forrest logo
back to the btrfs tool

btrfs:tldr:c2469

btrfs: Show quota.
$ sudo btrfs qgroup show ${path-to-subvolume}
try on your machine

The command you mentioned, sudo btrfs qgroup show ${path-to-subvolume}, is used to display quota group information for a specified Btrfs subvolume.

Here's a breakdown of the command:

  • sudo: This is a command in Unix-like operating systems that allows the execution of a command as the superuser or root user. It is often used when administrative privileges are required to perform certain actions.
  • btrfs: This is the command-line utility in Linux used for managing the Btrfs file system.
  • qgroup show: This is an option of the btrfs command that instructs it to display quota group information.
  • ${path-to-subvolume}: This is a placeholder for the actual path to the Btrfs subvolume whose quota group information you want to display. You need to replace ${path-to-subvolume} with the actual path, such as /path/to/subvolume.

When you run this command with the actual subvolume path, it will show you the quota group information for that subvolume. The quota group information includes the ID of the group, the maximum amount of space allocated, the number of referenced blocks, and the number of exclusive blocks used by the subvolume. This information helps you monitor and manage the space usage of the subvolume.

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