Skip to main content
1 of 4
Kamil Maciorowski
  • 24.5k
  • 2
  • 69
  • 129
btrfs subvolume show /directory/in/question

Most likely you need sudo. The command will succeed if it's a subvolume; it will fail otherwise. You can redirect output to /dev/null and rely solely on the exit status.

Kamil Maciorowski
  • 24.5k
  • 2
  • 69
  • 129