RUNAT(1)

πŸ“¦ version 15.1, in freebsd 15.1

✨ NAME ✨

okay so this is RUNAT(1) from the General Commands Manual, and it's all about runat β€” literally run a shell command on a named attribute directory 🫢

🌸 SYNOPSIS 🌸

runat [file] [shell command]

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, runat runs the shell command on the named attribute directory for the file argument. It does a fchdir(2) system call to change the current working directory into the named attribute directory for the file argument, and then it performs the shell command via sh(1) ✨

If a named attribute directory does not exist for file, an empty one will be created. 🫢

If an application needs to determine if a named attribute exists for the file, pathconf(2) with the name _PC_HAS_NAMEDATTR may be used. And this is important: this will not create an empty named attribute directory if one does not exist for file. πŸ’…

πŸŽ€ EXAMPLES πŸŽ€

for a file called β€œmyfile”, it's giving:

$ runat myfile ls -l                    # lists the attributes for myfile
$ runat myfile cp /etc/hosts attrhosts  # creates attrhosts
$ runat myfile cat attrhosts            # displays contents of attrhosts

πŸ”₯ SEE ALSO πŸ”₯

sh(1), fchdir(2), pathconf(2), open(2), named_attribute(7) β€” go read them, iykyk πŸ’–

⭐ HISTORY ⭐

The runat utility first appeared in FreeBSD 15.0. periodt 🌈


k bye bestie β€” this page is from Debian, dated April 15, 2025 πŸ“πŸ’œ

πŸ“¦ where this page comes from