mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
439 B
Plaintext
18 lines
439 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# getfattr
|
|
|
|
> Display file names and extended attributes.
|
|
> More information: <https://manned.org/getfattr>.
|
|
|
|
- Retrieve all extended attributes of a file and display them in a detailed format:
|
|
|
|
`getfattr {{[-d|--dump]}} {{path/to/file}}`
|
|
|
|
- Get a specific attribute of a file:
|
|
|
|
`getfattr {{[-n|--name]}} user.{{attribute_name}} {{path/to/file}}`
|