S6-RENAME(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’– S6-RENAME(1) β€” the girlies' guide to atomic renaming πŸ’–

okay so this is the man page for s6-rename, from the s6-portable-utils fam (General Commands Manual, if you're keeping track πŸŽ€). she's a tiny little icon and she does exactly one thing, but she does it flawlessly.


✨ NAME ✨

s6-rename β€” atomically rename a file πŸ’…

like, the whole rename happens as one indivisible glow-up. no in-between state, no half-renamed mess. periodt.

🌸 SYNOPSIS 🌸

s6-rename old new

πŸ¦‹ DESCRIPTION πŸ¦‹

s6-rename atomically renames old to new.

that's it. that's the whole vibe. bestie it is not complicated and honestly? we love that for her. the "atomic" part is the main character energy here β€” the rename is all-or-nothing, no cursed partial states, iykyk. πŸ”₯

πŸ‘‘ EXIT STATUS πŸ‘‘

she's got opinions and she will tell you about them via exit codes. here's the whole lineup, no gatekeeping:

  • 111 β€” temporary error. like, it didn't work right now, but it's not necessarily forever 🫢
  • 100 β€” permanent error, such as a misuse. you used her wrong, bestie, and she's not gonna pretend otherwise πŸ’€
  • 127 β€” unable to execute program - not found. literally couldn't find the thing 😭
  • 126 β€” unable to execute program - other reason. found it, but executing it was a no πŸ™ˆ

🌈 SEE ALSO 🌈

the whole friend group, in the order the original lists them (no reshuffling, i would never):

πŸ’‘ also, for the record: this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-rename.html β€” that's the source of truth, go say hi 🧚

πŸ“ AUTHORS πŸ“

  • Laurent Bercot
  • Alexis <flexibeast@gmail.com> (man page port)

and that's the whole page, bestie πŸ’œ credit where it's due: this is Debian's, dated April 17, 2022 β€” so like, respectfully, go touch some grass after this and remember: atomic means atomic πŸŽ€βœ¨

πŸ“¦ where this page comes from