1SETFATTR(1) File Utilities SETFATTR(1)
2
3
4
6 setfattr - set extended attributes of filesystem objects
7
9 setfattr [-h] -n name [-v value] pathname...
10 setfattr [-h] -x name pathname...
11 setfattr [-h] --restore=file
12
14 The setfattr command associates a new value with an extended attribute
15 name for each specified file.
16
17 OPTIONS
18 -n name, --name=name
19 Specifies the name of the extended attribute to set.
20
21 -v value, --value=value
22 Specifies the new value for the extended attribute.
23
24 -x name, --remove=name
25 Remove the named extended attribute entirely.
26
27 -h, --no-dereference
28 Do not follow symlinks. If pathname is a symbolic link, it is not
29 followed, but is instead itself the inode being modified.
30
31 --restore=file
32 Restores extended attributes from file. The file must be in the
33 format generated by the getfattr command with the --dump option.
34 If a dash (-) is given as the file name, setfattr reads from stan‐
35 dard input.
36
37 --version
38 Print the version of setfattr and exit.
39
40 --help
41 Print help explaining the command line options.
42
43 -- End of command line options. All remaining parameters are inter‐
44 preted as file names, even if they start with a dash character.
45
47 Andreas Gruenbacher, <a.gruenbacher@bestbits.at> and the SGI XFS devel‐
48 opment team, <linux-xfs@oss.sgi.com>.
49
50 Please send your bug reports or comments to these addresses.
51
53 getfattr(1), and attr(5).
54
55
56
57Dec 2001 Extended Attributes SETFATTR(1)