mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 15:15:29 +02:00
btrfs-property: add page (#7454)
This commit is contained in:
parent
1a6a1759bd
commit
38d44d6c40
1 changed files with 24 additions and 0 deletions
24
pages/linux/btrfs-property.md
Normal file
24
pages/linux/btrfs-property.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# btrfs property
|
||||
|
||||
> Get, set, or list properties for a given btrfs filesystem object (files, directories, subvolumes, filesystems, or devices).
|
||||
> More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-property>.
|
||||
|
||||
- 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}}`
|
Loading…
Add table
Reference in a new issue