Skip to content

Instantly share code, notes, and snippets.

@etam
Last active August 2, 2016 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save etam/0de1c43514927c09e0074240ea3b6ae9 to your computer and use it in GitHub Desktop.
Save etam/0de1c43514927c09e0074240ea3b6ae9 to your computer and use it in GitHub Desktop.
#!/bin/bash
die() {
echo "$1" >&2
exit 1
}
(( $# > 1 )) \
&& die "too many arguments"
path="${1:-.}"
sudo btrfs subvolume list --sort=path -t "$path"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment