tldextract(1)

✨ tldextract β€” the manual, but make it cute ✨

okay so bestie, let me put you on. this is tldextract, a little program from the General Commands Manual, and it separates the generic or country code top-level domains from the registered domain and subdomains of a URL. like it literally takes a URL apart and tells you which piece is which. it's giving surgeon but for domain names πŸ’…


🌸 SYNOPSIS 🌸

tldextract [options] fqdn | url

so you hand it either an fqdn or a url, plus whatever [options] you're feeling, and it does the thing. periodt.


πŸŽ€ DESCRIPTION πŸŽ€

This manual page briefly documents the tldextract command. that's it, that's the vibe β€” short and sweet, no yapping 🫢


πŸ’– OPTIONS πŸ’–

These programs follow the usual GNU command line syntax, with long options starting with two dashes (-). A summary of options is included below. ngl the GNU syntax thing is just the standard rules of the road, we love consistency here 🌈

  • -h, --help β€” Show summary of options. your little "what do I even do" lifeline, use it whenever 🧚
  • --version β€” Show version of program. so you know exactly which era of tldextract you're living in ⭐
  • -u, --update β€” Force fetch the latest TLD definitions. yes bestie, "force" β€” it goes and gets the fresh ones on purpose πŸ”₯
  • -c,--cache-file CACHE_FILE β€” Use an alternate TLD definition file. you pass it a CACHE_FILE and it uses that one instead of the usual πŸ“
  • -p,--private-domains β€” Include private-domains. they're in the mix now, no cap πŸ‘‘
note: the option list is exactly these five, don't go inventing more, i see you πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

For more information about tldextract see https://github.com/john-kurkowski/tldextract β€” the source of truth, the mothership, go read it if you want the deep lore πŸ¦‹


okay and for the cute sign-off: this lil page came out of the General Commands Manual, dated February 10 2018, and it's for tldextract(1) β€” so go forth and split some domains, you absolute main character πŸ’œβœ¨

πŸ“¦ where this page comes from