Update cheatsheets

This commit is contained in:
ivuorinen
2025-07-20 00:24:01 +00:00
parent 16134c78d9
commit 1ec3810968
41 changed files with 352 additions and 139 deletions

View File

@@ -10,20 +10,20 @@ source: https://github.com/tldr-pages/tldr.git
- List available properties (and descriptions) for the given btrfs object:
`sudo btrfs property list {{path/to/btrfs_object}}`
`sudo btrfs {{[p|property]}} {{[l|list]}} {{path/to/btrfs_object}}`
- Get all properties for the given btrfs object:
`sudo btrfs property get {{path/to/btrfs_object}}`
`sudo btrfs {{[p|property]}} {{[g|get]}} {{path/to/btrfs_object}}`
- Get the `label` property for the given btrfs filesystem or device:
`sudo btrfs property get {{path/to/btrfs_filesystem}} label`
`sudo btrfs {{[p|property]}} {{[g|get]}} {{path/to/btrfs_filesystem}} label`
- Get all object type-specific properties for the given btrfs filesystem or device:
`sudo btrfs property get -t {{subvol|filesystem|inode|device}} {{path/to/btrfs_filesystem}}`
`sudo btrfs {{[p|property]}} {{[g|get]}} -t {{subvol|filesystem|inode|device}} {{path/to/btrfs_filesystem}}`
- Set the `compression` property for a given btrfs inode (either a file or directory):
`sudo btrfs property set {{path/to/btrfs_inode}} compression {{zstd|zlib|lzo|none}}`
`sudo btrfs {{[p|property]}} {{[s|set]}} {{path/to/btrfs_inode}} compression {{zstd|zlib|lzo|none}}`