KCDIRMGR(1)
π KCDIRMGR(1) β Kyoto Cabinet's directory hash database wrangler π
okay bestie, welcome to kcdirmgr from the Kyoto Cabinet manual (section 1, the user commands, obviously π
). this is your command-line bestie for managing the directory hash database. let's get into it π«Ά
πΈ NAME πΈ
kcdirmgr β literally the command line interface to manage the directory hash database. that's it, that's the vibe. no cap.
β¨ DESCRIPTION β¨
so here's the tea β: the command kcdirmgr is a utility for test and debugging of the directory hash database and its applications. it's giving developer-tools energy, fr fr.
before we go any further, let's meet the squad of arguments you'll be passing around:
pathβ specifies the path of a database file. this is the main character of every single subcommand.keyβ specifies the key of a record.valueβ specifies the value of a record.fileβ specifies the input/output file.
got it? iconic. now the subcommands π
π the subcommands (aka the whole menu) π
kcdirmgr create [-otr] [-onl|-otl|-onr] [-tc] pathβ creates a database file. brand new db, fresh out the box β¨kcdirmgr inform [-onl|-otl|-onr] [-st] pathβ prints status information. the gossip report on your database πkcdirmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] path key valueβ stores a record. put it in, bestie.kcdirmgr remove [-onl|-otl|-onr] [-sx] path keyβ removes a record. bye girl πkcdirmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path keyβ prints the value of a record. fetch, but make it unix.kcdirmgr list [-onl|-otl|-onr] [-max num] [-rm] [-sx] [-pv] [-px] path [key]β prints keys of all records, separated by line feeds.kcdirmgr clear [-onl|-otl|-onr] pathβ removes all records of a database. scorched earth, but consensual πkcdirmgr import [-onl|-otl|-onr] [-sx] path [file]β imports records from a TSV file.kcdirmgr copy [-onl|-otl|-onr] path fileβ copies the whole database. clone her πkcdirmgr dump [-onl|-otl|-onr] path [file]β dumps records into a snapshot file.kcdirmgr load [-otr] [-onl|-otl|-onr] path [file]β loads records from a snapshot file.kcdirmgr defrag [-onl|-otl|-onr] pathβ performs defragmentation. glow-up for your storage π§kcdirmgr setbulk [-onl|-otl|-onr] path key value ...β store records at once. speedrun edition π₯kcdirmgr removebulk [-onl|-otl|-onr] [-sx] path key ...β remove records at once.kcdirmgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ...β retrieve records at once.kcdirmgr check [-onl|-otl|-onr] pathβ checks consistency. vibe check, but for your data π
π OPTIONS π
here's where it gets juicy. options feature the following, and you're gonna want to screenshot this:
-otrβ opens the database with the truncation option.-onlβ opens the database with the no locking option.-otlβ opens the database with the try locking option.-onrβ opens the database with the no auto repair option.-tcβ tunes the database with the compression option.-stβ prints miscellaneous information.-addβ performs adding operation.-appβ performs appending operation.-repβ performs replacing operation.-inciβ performs integer increment operation.-incdβ performs real number increment operation.-sxβ the input data is evaluated as a hexadecimal data string.-rmβ removes the record.-pxβ the output data is converted into a hexadecimal data string.-pzβ does not append line feed at the end of the output.-max numβ specifies the maximum number of shown records.-pvβ prints values of records also.
β οΈ heads up bestie:-onl,-otland-onrare mutually exclusive-ish in the synopses β you pick one from that little group, not all three at once. read the synopsis, trust the synopsis π
π exit status π
This command returns 0 on success, another on failure. so if you get a 0, she ate. anything else? not her day π
π¦ SEE ALSO π¦
kcdirtest(1)β go say hi to her cousin π
and that's the whole page, bestie! this one's from the Kyoto Cabinet manual, dated 2012-05-24, and the footer said Man Page with KCDIRMGR(1) as the title β so if you ever need to cite her, that's the receipt. now go forth and manage that directory hash database like the main character you are. periodt. π β¨π
π¦ where this page comes from
- alpine 3.24: kyotocabinet-doc 1.2.80-r1 Β· GPL-3.0-or-later
- arch rolling: kyotocabinet 1.2.80-2 Β· GPL-3.0-or-later
- debian bookworm: kyotocabinet-utils 1.2.79-2+b1
- debian trixie: kyotocabinet-utils 1.2.80-2+b1
- fedora 43: kyotocabinet 1.2.80-8.fc43 Β· GPL-3.0-only
- fedora 44: kyotocabinet 1.2.80-9.fc44 Β· GPL-3.0-only
- nixos 26.05: kyotocabinet 1.2.80
- nixpkgs unstable: kyotocabinet 1.2.80
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- ubuntu jammy: kyotocabinet-utils 1.2.79-1
- ubuntu noble: kyotocabinet-utils 1.2.80-1build1
- ubuntu questing: kyotocabinet-utils 1.2.80-2
- ubuntu resolute: kyotocabinet-utils 1.2.80-2build1
- ubuntu stonking: kyotocabinet-utils 1.2.80-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms