RMEXTATTR(8)
π RMEXTATTR(8) β extended attribute besties β¨
okay bestie, you're looking at the System Manager's Manual page for RMEXTATTR(8). It's giving extended-attribute squad energy: getextattr, lsextattr, rmextattr, and setextattr are all here, and they're ready to handle named extended attributes on files and directories. no cap. π¦
π NAME π
getextattr, lsextattr, rmextattr, setextattr β manipulate extended attributes. literally the whole little squad for named extended attrs. π
β¨ SYNOPSIS β¨
getextattr [-fhqsx] attrnamespace attrname filename ...
lsextattr [-fhq] attrnamespace filename ...
rmextattr [-fhq] attrnamespace attrname filename ...
setextattr [-fhnq] attrnamespace attrname attrvalue filename ...
setextattr -i [-fhnq] attrnamespace attrname filename ...
πΈ DESCRIPTION πΈ
These utilities are user tools to manipulate the named extended attributes on files and directories. The attrnamespace argument should be the namespace of the attribute to retrieve: legal values are user and system. The attrname argument should be the name of the attribute, filename the name of the target file or directory, and attrvalue a string to store in the attribute. bestie, that's the whole map. πΊοΈ
The following options are available:
-fβ (Force.) Ignore errors on individual filenames and continue with the remaining arguments. bestie said keep going. πͺ-hβ (No follow.) If the file is a symbolic link, perform the operation on the link itself rather than the file that the link points to. link literal, not link's bestie. π«Ά-iβ (From stdin.) Read attribute data from stdin instead of as an argument. pipe it in, periodt. π-nβ (NUL-terminate.) NUL-terminate the extent content written out. yes, the extent content. exactly. β¨-qβ (Quiet.) Do not print out the pathname and suppress error messages. When given twice, print only the attribute value, with no trailing newline. quiet quiet = just the value, no newline. π€«-sβ (Stringify.) Escape nonprinting characters and put quotes around the output. make it printable and cute. π-xβ (Hex.) Print the output in hexadecimal. hex girl summer. π₯
π EXAMPLES π
here's the demo reel, bestie β commands exact, vibes immaculate:
setextattr system md5 `md5 -q /boot/kernel/kernel` /boot/kernel/kernel
md5 -q /boot/kernel/kernel | setextattr -i system md5 /boot/kernel/kernel
getextattr system md5 /boot/kernel/kernel
getextattr -qq system md5 /boot/kernel/kernel | od -x
lsextattr system /boot/kernel/kernel
rmextattr system md5 /boot/kernel/kernel
π«Ά SEE ALSO π«Ά
go read these, iykyk. π
π¦ HISTORY π¦
Extended attribute support was developed as part of the TrustedBSD Project, and introduced in FreeBSD 5.0. It was developed to support security extensions requiring additional labels to be associated with each file or directory. so iconic. β¨
π AUTHORS π
- Robert N M Watson
- Poul-Henning Kamp
π cute sign-off: this page is from Debian, dated April 27, 2016, and it's the RMEXTATTR(8) manual page. go forth and manipulate those extended attributes, bestie β periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2000, 2001 Robert N. M. Watson
- Copyright (c) 2002 Networks Associates Technology, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms