mls(1)

πŸ“¦ version 5.4.2, in nixos 26.05, nixpkgs unstable

πŸ’… mls(1) β€” the Manta Commands era, bestie

okay so real talk: this is mls(1) from the Manta Commands set, and yes she's here to list your stuff. so iconic of her.


✨ NAME ✨

mls β€” list directory contents. that's it, that's the whole vibe. πŸŽ€


🌸 SYNOPSIS 🌸

mls [OPTION...] [FILE]...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so mls lists info about the FILEs you hand it. and if you hand it literally nothing? she defaults to /:login/stor, where :login is either the login you gave her with -a or whatever $MANTA_USER says. main character energy, honestly. πŸ‘‘

entries come sorted by creation time. and heads up β€” directories will look like they have a trailing / after them, while objects are just the name, unless you passed -l. no cap. πŸ’–


🌈 EXAMPLES 🌈

$ mls ~~/stor
foo
home/
README.md
tmp/

look at that. flawless. directories got their lil slashes, objects didn't. slay. ✨


πŸ’œ OPTIONS πŸ’œ

  • -a, --account login β€” authenticate as login name. be that account, periodt.
  • -h, --human-readable β€” human readable output when you're using a long listing format. cute lil numbers for humans. 🫢
  • --help β€” print a help message and exit. she'll explain herself.
  • -i, --insecure β€” this option explicitly allows "insecure" SSL connections and transfers. ngl, all SSL connections are attempted to be made secure by using the CA certificate bundle installed by default β€” so this is you going "yeah ik, do it anyway." πŸ™ˆ
  • -j, --json β€” output records in JSON instead of the human readable form. for the machine girlies. πŸ’€
  • -k, --key fingerprint β€” authenticate using the SSH key described by FINGERPRINT. the key must either be in ~/.ssh or loaded in the SSH agent via ssh-add. no shortcuts, bestie.
  • -l, --long β€” use a long listing format. note that since Manta does not have group information, this is like ls -o, not ls -l, in a traditional shell. important lore. πŸ“š
  • -m, --marker name β€” start listing at name NAME. useful to paginate through large listings. lowkey the pagination queen.
  • -r, --reverse β€” reverse order while sorting. flip it. πŸ”„
  • --role=ROLE,ROLE,... β€” specify which roles to assume for the request. yes, plural, comma-separated, she can multitask. πŸ‘‘
  • -t, --time β€” sort by modification time, newest first. fresh to death. ⭐
  • --user user β€” authenticate as user under account. subuser era.
  • -u, --url url β€” Manta base URL, like https://us-central.manta.mnx.io. point her somewhere. 🌍
  • -v, --verbose β€” print debug output to stderr. repeat the option to increase verbosity. (-v, -vv, -vvv… you get it. 🩷)

🧚 ENVIRONMENT 🧚

the environment variables are literally the same thing as the flags, just living in your shell instead. iykyk.

  • MANTA_USER β€” in place of -a, --account.
  • MANTA_SUBUSER β€” in place of --user.
  • MANTA_KEY_ID β€” in place of -k, --key.
  • MANTA_ROLE β€” in place of --role.
  • MANTA_URL β€” in place of -u, --url.
  • MANTA_TLS_INSECURE β€” in place of -i, --insecure.

also!! the shortcut ~~ is equivalent to /:login where :login is the account login name. saving you so many keystrokes, you're welcome bestie πŸŽ€

ngl the ~~ shortcut is the moment. type less, vibe more.

πŸ”₯ DIAGNOSTICS πŸ”₯

when you use the -v option, diagnostics get sent to stderr in bunyan output format. and if you wanna trace, like, all the information about a request, try:

$ mls -vv ~~/stor 2>&1 | bunyan

that 2>&1? that's the whole trick. pipe it straight into bunyan and watch the tea spill. β˜•βœ¨


πŸ’€ BUGS πŸ’€


πŸ“ sign-off πŸ“

that's the whole page, bestie β€” brought to you by Manta, dated Sep 2018, and she ate, no crumbs. go list some directories. πŸ’…πŸ’–βœ¨

πŸ“¦ where this page comes from