Files
cheatsheet-tldr/tldr/linux/getfattr
2025-04-20 00:20:58 +00:00

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}}`