mrmdir(1)

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

okay so bestie, welcome to the mrmdir(1) page from Manta Commands 🫢✨ this is your group-chat cheat sheet for removing empty directories, and yes we're keeping every flag because details are the moment. πŸ’…

πŸ’– NAME πŸ’–

mrmdir β€” remove empty directories. that's it, that's the name, no cap πŸ’…

✨ SYNOPSIS ✨

like, the shape of the command is:

mrmdir [OPTION...] DIRECTORY...

🌸 DESCRIPTION 🌸

mrmdir removes each specified directory, if they are empty. so you point it at DIRECTORY..., and it does its thing only when the directories are empty β€” if a directory is not empty, this is not the tool for that, bestie. periodt. 🫢

πŸŽ€ EXAMPLES πŸŽ€

this iconic little example:

$ mrmdir ~~/stor/tmp

πŸ’… OPTIONS πŸ’…

  • -a, --account login β€” authenticate as account (login name). πŸ’–
  • -h, --help β€” print a help message and exit. easy.
  • -i, --insecure β€” this option explicitly allows "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. 😬
  • -I, --interactive β€” confirm before deleting directories. yes, it asks first, we love a cautious queen 🫢
  • -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. πŸ”‘
  • --role=ROLE,ROLE,... β€” specify which roles to assume for the request. πŸ‘‘
  • --user user β€” authenticate as user under account. 🌈
  • -u, --url url β€” Manta base URL (such as https://us-central.manta.mnx.io). πŸ”₯
  • -v, --verbose β€” print debug output to stderr. repeat the option to increase verbosity. πŸ—£οΈ

πŸ¦‹ ENVIRONMENT πŸ¦‹

  • 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.

the shortcut ~~ is equivalent to /:login where :login is the account login name. iykyk 🧚

πŸ‘‘ DIAGNOSTICS πŸ‘‘

when using the -v option, diagnostics will be sent to stderr in bunyan output format. as an example of tracing all information about a request, try:

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

πŸ’€ BUGS πŸ’€

DSA keys do not work when loaded via the SSH agent. ngl that's the bug note, not me being dramatic 😭

Report bugs at Github ⟨https://github.com/TritonDataCenter/node-manta/issues⟩


okay bye bestie β€” source/version: Manta, dated August 2018, and it's the mrmdir(1) manual. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from