HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

getfattr — Display file names and extended attributes. More information: <https://manned.org/getfattr>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandextendedandnamesclifilegetfattrdisplay
linux

Problem

How to use the getfattr command: Display file names and extended attributes. More information: <https://manned.org/getfattr>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/getfattr

Revisions (0)

No revisions yet.