S6-UNIQUENAME(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, meet s6-uniquename β€” the manual page is titled S6-UNIQUENAME(1) and it lives in the General Commands Manual. Its whole thing? Create a guaranteed unique file name and print it to stdout. slay.

πŸ¦‹ SYNOPSIS πŸ¦‹

s6-uniquename [-n randomlen] prefix

✨ DESCRIPTION ✨

So s6-uniquename creates a unique filename starting with prefix, and that name involves a TAI64N timestamp, the machine's FQDN, and the process' PID. No cap.

It prints that filename to stdout and exits 0. Periodt.

πŸŽ€ OPTIONS πŸŽ€

  • -n randomlen β€” for added security, also add a random readable string of randomlen characters to the created pathname. Cute and chaotic-safe.

πŸ‘‘ EXIT STATUS πŸ‘‘

  • 111 β€” Temporary error.
  • 100 β€” Permanent error, such as a misuse.
  • 127 β€” Unable to execute program - not found.
  • 126 β€” Unable to execute program - other reason.

🌈 SEE ALSO 🌈

the manual says go say hi to these besties: s6-basename(1), s6-cat(1), s6-chmod(1), s6-chown(1), s6-clock(1), s6-cut(1), s6-dirname(1), s6-dumpenv(1), s6-echo(1), s6-env(1), s6-expr(1), s6-false(1), s6-format-filter(1), s6-grep(1), s6-head(1), s6-hiercopy(1), s6-linkname(1), s6-ln(1), s6-ls(1), s6-maximumtime(1), s6-mkdir(1), s6-mkfifo(1), s6-nice(1), s6-nuke(1), s6-pause(1), s6-printenv(1), s6-quote(1), s6-quote-filter(1), s6-rename(1), s6-rmrf(1), s6-seq(1), s6-sleep(1), s6-sort(1), s6-sync(1), s6-tai64ndiff(1), s6-tail(1), s6-touch(1), s6-true(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1).

Also, this man page is ported from the authoritative documentation at https://skarnet.org/software/s6-portable-utils/s6-uniquename.html β€” iconic source behavior, honestly.

πŸ’œ AUTHORS πŸ’œ

  • Laurent Bercot β€” author.
  • Alexis <flexibeast@gmail.com> β€” man page port.

That's the whole page, bestie. Footer vibe check: Debian, April 18, 2022, S6-UNIQUENAME(1) β€” mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from