htdig(1)

πŸ’– htpurge β€” the glow-up your database needed πŸ’–

okay bestie, welcome to the General Commands Manual ✨ this is the htdig(1) page (yes the header is a little chaotic, we love that for it) and today we're learning about htpurge, aka the little cleanup icon that keeps your database from hoarding.


🌸 NAME 🌸

htpurge β€” remove unused documents from the database (general maintenance script)

no cap, that's literally it. it's the general maintenance script. she cleans.


πŸŽ€ SYNOPSIS πŸŽ€

htpurge [-][-a][-c configfile][-u][-v]

look at her. compact. efficient. main character energy fr fr.


πŸ¦‹ DESCRIPTION πŸ¦‹

So htpurge functions to remove specified URLs from the databases, plus bad URLs, unretrieved URLs, obsolete documents, etc. etc. πŸ’…

Basically: it's giving digital declutter. It is recommended that htpurge be run after htdig to clean out any documents of this sort. Think of it like, you go shopping (htdig), you come home with bags, and then htpurge is the one putting everything away and yeeting the receipts you don't need. πŸ›οΈβœ¨

✨ OPTIONS ✨

  • - β€” Take URL list from standard input (rather than specified with -u). Format of input file is one URL per line.
  • -a β€” Use alternate work files. Tells htpurge to append .work to database files, causing a second copy of the database to be built. This allows the original files to be used by htsearch during the run. 🫢 (so thoughtful of her honestly)
  • -c configfile β€” Use the specified configfile instead of the default.
  • -u URL β€” Add this URL to the list of documents to remove. Must be specified multiple times if more than one URL are to be removed. Should nor be used together with -. 🚨 (yes it says "nor" β€” that's the original wording bestie, we do not edit the queen's typos, we preserve them πŸ’€)
  • -v β€” Verbose mode. This increases the verbosity of the program. Using more than 2 is probably only useful for debugging purposes. The default verbose mode (using only one -v) gives a nice progress report while digging. πŸ”₯
heads up bestie: -u and - do not go together. pick a lane. pick one. πŸ™ˆ

🌈 FILES 🌈

  • /etc/htdig/htdig.conf β€” The default configuration file.

πŸ’œ SEE ALSO πŸ’œ

Please refer to the HTML pages (in the htdig-doc package) at:

/usr/share/doc/htdig-doc/html/index.html

and the manual pages htdigconfig(8), htdig(1) and htmerge(1) for a detailed description of ht://Dig and its commands.

like, go read the whole lore. it's a whole universe. 🌌


πŸ‘‘ AUTHOR πŸ‘‘

This manual page was written by Robert Ribnitz, based on the HTML documentation of ht://Dig. πŸ’–


and that's the whole page, bestie!! this gorgeous little writeup is dated January 2004 and comes to you from the htdig(1) corner of the General Commands Manual. slay, stay clean, purge responsibly, and remember: your database deserves a glow-up too πŸŽ€βœ¨πŸ¦‹πŸ’…πŸ«Ά