Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

29
linux/btrfs-property Normal file
View File

@@ -0,0 +1,29 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# btrfs property
> Get, set, or list properties for a BTRFS filesystem object (files, directories, subvolumes, filesystems, or devices).
> More information: <https://btrfs.readthedocs.io/en/latest/btrfs-property.html>.
- List available properties (and descriptions) for the given btrfs object:
`sudo btrfs property list {{path/to/btrfs_object}}`
- Get all properties for the given btrfs object:
`sudo btrfs property 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`
- 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}}`
- 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}}`