htdump(1)
πΈ htdump(1) β the general commands manual page, but make it cute πΈ
okay bestie, welcome to htdump π this is a General Commands Manual entry and honestly? she's a whole vibe.
β¨ NAME β¨
htdump β write out an ASCII-text version of the document database π«Ά
β¨ SYNOPSIS β¨
htdump [options]
β¨ DESCRIPTION β¨
So htdump writes out an ASCII-text version of the document database, and it does it in the same form as the -t option of htdig. that's it, that's the girl. no cap. π
β¨ OPTIONS β¨
-aβ Use alternate work files. this tellshtdumpto append.workto database files, which lets it operate on a second set of databases. lowkey iconic for keeping your stuff separate β¨-cconfigfile β Use the specified configfile instead of the default. pick your own adventure π-vβ Verbose mode. and ngl bestie? this doesn't have much effect π
β¨ File Formats β¨
πΎ Document Database
Every single line in the file starts with the document id, followed by a list of fieldname : value separated by tabs. and the fields always appear in the order listed below β the order is the moment, don't fight it:
uβ URL πtβ Titleaβ State (0= normal,1= not found,2= not indexed,3= obsolete) πmβ Last modification time as reported by the serversβ Size in bytesHβ Excerpthβ Meta descriptionlβ Time of last retrievalLβ Count of the links in the document (outgoing links) π€bβ Count of the links to the document (incoming links or backlinks) π₯cβ HopCount of this documentgβ Signature of the document used for duplicate-detection π΅οΈeβ E-mail address to use for a notification message fromhtnotifyπ§nβ Date to send out a notification e-mail messageSβ Subject for a notification e-mail messagedβ The text of links pointing to this document. (e.g.<a href="docURL">description</a>)Aβ Anchors in the document (i.e.<A NAME=...)
πΎ Word Database
okay so here's the tea: while htdump and htload don't deal with the word database directly, it's worth mentioning it here because you need to deal with it when copying the ASCII databases from one system to another. π
The initial word database produced by htdig is already in ASCII format, and a binary version of it is produced by htmerge, for use by htsearch. So, when you copy over the ASCII version of the document database produced by htdump, you need to copy over the wordlist as well, then run htload to make the binary document database on the target system, followed by running htmerge to make the word index. that's the whole pipeline bestie, respect it π«Ά
Each line in the word list file starts with the word, followed by a list of fieldname : value separated by tabs. The fields always appear in the order listed below, with the last two being optional:
iβ Document IDlβ Location of word in document (1to1000)wβ Weight of word based on scoring factorscβ Count of word's appearances in document, if more than1aβ Anchor number if word occurred after a named anchor
β¨ FILES β¨
/etc/htdig/htdig.confβ The default configuration file. π/var/lib/htdig/db.docsβ The default ASCII document database file. π/var/lib/htdig/db.wordlistβ The default ASCII word database file. π
β¨ SEE ALSO β¨
Please refer to the HTML pages (in the htdig-doc package) /usr/share/doc/htdig-doc/html/index.html and the manual pages htdig(1) , and htload(1) for a detailed description of ht://Dig and its commands. go read them, they ate π
β¨ AUTHOR β¨
This manual page was written by Stijn de Bekker, based on the HTML documentation of ht://Dig. π
and that's a wrap bestie!! π¦ this page is dated 15 October 2001 and it comes from htdump(1) β yeah the footer literally just says that again, she's consistent. periodt πβ¨
π¦ where this page comes from
- debian bookworm: htdig 1:3.2.0b6-19+b1
- debian trixie: htdig 1:3.2.0b6-21
- ubuntu jammy: htdig 1:3.2.0b6-19
- ubuntu noble: htdig 1:3.2.0b6-20build1
- ubuntu questing: htdig 1:3.2.0b6-21
- ubuntu resolute: htdig 1:3.2.0b6-21build1
- ubuntu stonking: htdig 1:3.2.0b6-22build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms