RMEXTATTR(8)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’… 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