---
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 {{path/to/file}}`

- Get a specific attribute of a file:

`getfattr -n user.{{attribute_name}} {{path/to/file}}`
