S6-LS(1)

πŸ“¦ version 2.3.1.2, in nixpkgs unstable

πŸ’– s6-ls β€” like, list a directory's contents, bestie ✨

okay so real talk: this is page one of the General Commands Manual, and the star of the show is s6-ls, from the s6-portable-utils squad. she's small, she's fierce, she lists dirs. let's go πŸ’…


πŸŽ€ NAME πŸŽ€

s6-ls β€” list the contents of a directory. that's it. that's the whole job. and she ATE. πŸ’–


🌸 SYNOPSIS 🌸

s6-ls [-0] [-a | -A] [-x exclude] dir

like, you give her a dir, you sprinkle on some flags, she gives you the vibes (the file names). iconic behavior honestly πŸ¦‹


✨ DESCRIPTION ✨

so s6-ls lists the contents of dir, one file per line β€” very demure, very mindful. πŸ“‹

and listen: it omits files starting with a dot, so all your sneaky little hidden files stay hidden unless you say otherwise. lowkey the default we all deserve πŸ™ˆβœ¨


πŸ‘‘ OPTIONS πŸ‘‘

  • -0 β€” separate file names with a null character instead of a newline. yes queen, null-terminated output, ideal for when you're piping into something that can't handle spaces. πŸ”₯
  • -a β€” do not omit files starting with a dot. hidden files, come on out! πŸŽ‰ but ngl, it will not list . or .. though. those two stay in the shadows πŸ’€
  • -A β€” do not omit files starting with a dot, and this time even . and .. get listed. she's giving full transparency. no secrets. none. πŸ‘οΈπŸ‘„πŸ‘οΈ
  • -x exclude β€” if a file name is exactly exclude, do not print it. one specific name, blocked, unfollowed, uninvited. β›”πŸ’…

πŸ¦‹ EXIT STATUS πŸ¦‹

bestie, check these codes when she dips, okay? each one is telling you something:

  • 111 β€” temporary error. it's giving "try again later, she's not in the mood" 😭
  • 100 β€” permanent error, such as a misuse. you did something wrong and there's no fixing it, sorry queen πŸ™ˆ
  • 127 β€” unable to execute program β€” not found. literally doesn't exist. nowhere. gone. πŸ‘»
  • 126 β€” unable to execute program β€” other reason. she's there but she's not coming to the door πŸšͺπŸ’€

πŸ’œ SEE ALSO πŸ’œ

the whole friend group showed up for this one, fr fr 🫢

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-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-uniquename(1), s6-unquote(1), s6-unquote-filter(1), s6-update-symlinks(1), seekablepipe(1)

also there's this reference, keep it in your notes app πŸ“:

[1] https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ls.html

πŸ’Œ and for the record, this man page is ported from the authoritative documentation at: https://skarnet.org/software/s6-portable-utils/s6-ls.html β€” so all credit to the source material, we're just making it cute πŸŽ€

🌈 STANDARDS 🌈

no cap, s6-ls is not suitable as an ls[1] program conforming to . periodt. she's her own thing, not a POSIX ls cosplay πŸ’… (that's the official wording, we don't make the rules 🫠)


⭐ AUTHORS ⭐

giving credit where credit is due, mwah πŸ’‹

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


and that's the page!! 🌸 this one came from Debian, dated April 18, 2022 β€” so go forth and list those directories, bestie, you're gonna slay πŸ’–βœ¨πŸ‘‘

πŸ“¦ where this page comes from