KCTREEMGR(1)
π KCTREEMGR β the Kyoto Cabinet file tree database manager, bestie edition π
okay so real quick, this is kctreemgr from the Kyoto Cabinet manual, section 1 (general commands, we love a general command π). She's a command line interface to manage the file tree database, and she is so underrated.
πΈ NAME πΈ
kctreemgr β the command line interface that lets you manage the file tree database. no cap. π¦
β¨ DESCRIPTION β¨
so like. kctreemgr is a utility for test and debugging of the file tree database and its applications. she's the girl you call when you need to poke at things. π
before we go anywhere, let's define our little vocabulary, bestie:
pathβ specifies the path of a database file.keyβ specifies the key of a record.valueβ specifies the value of a record.fileβ specifies the input/output file.
got it? got it. π«Ά now here's the whole menu of subcommands, verbatim, no edits, because we respect her:
kctreemgr create [-otr] [-onl|-otl|-onr] [-apow num] [-fpow num]
[-ts] [-tl] [-tc] [-bnum num] [-psiz num] [-rcd|-rcld|-rcdd] path
Creates a database file.
kctreemgr inform [-onl|-otl|-onr] [-st] path
Prints status information.
kctreemgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx]
path key value
Stores a record.
kctreemgr remove [-onl|-otl|-onr] [-sx] path key
Removes a record.
kctreemgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path key
Prints the value of a record.
kctreemgr list [-onl|-otl|-onr] [-des] [-max num] [-rm] [-sx]
[-pv] [-px] path [key]
Prints keys of all records, separated by line feeds.
kctreemgr clear [-onl|-otl|-onr] path
Removes all records of a database.
kctreemgr import [-onl|-otl|-onr] [-sx] path [file]
Imports records from a TSV file.
kctreemgr copy [-onl|-otl|-onr] path file
Copies the whole database.
kctreemgr dump [-onl|-otl|-onr] path [file]
Dumps records into a snapshot file.
kctreemgr load [-otr] [-onl|-otl|-onr] path [file]
Loads records from a snapshot file.
kctreemgr defrag [-onl|-otl|-onr] path
Performs defragmentation.
kctreemgr setbulk [-onl|-otl|-onr] path key value ...
Store records at once.
kctreemgr removebulk [-onl|-otl|-onr] [-sx] path key ...
Remove records at once.
kctreemgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ...
Retrieve records at once.
kctreemgr check [-onl|-otl|-onr] path
Checks consistency.
okay let's translate the tea β for each one, because that wall of text is giving syllabus energy:
createβ creates a database file. birth. πinformβ prints status information. she's telling you how she's doing, emotionally and also technically.setβ stores a record. put the thing in the thing.removeβ removes a record. bye girl πgetβ prints the value of a record. the payoff, the reveal, the main character moment.listβ prints keys of all records, separated by line feeds. a whole scroll of keys, it's giving receipts.clearβ removes all records of a database. scorched earth, but make it cute πimportβ imports records from a TSV file.copyβ copies the whole database.dumpβ dumps records into a snapshot file.loadβ loads records from a snapshot file.defragβ performs defragmentation. self care for your database β¨setbulkβ store records at once. efficiency icon.removebulkβ remove records at once. mass exit.getbulkβ retrieve records at once.checkβ checks consistency. the vibe check, literally.
π OPTIONS π
these are the flags, and yes they work across the subcommands like a shared group chat. here's every single one, no skips, no skimming:
-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.-apow numβ specifies the power of the alignment of record size.-fpow numβ specifies the power of the capacity of the free block pool.-tsβ tunes the database with the small option.-tlβ tunes the database with the linear option.-tcβ tunes the database with the compression option.-bnum numβ specifies the number of buckets of the hash table.-psiz numβ specifies the size of each page.-rcdβ use the decimal comparator instead of the lexical one.-rcldβ use the lexical descending comparator instead of the ascending one.-rcddβ use the decimal descending comparator instead of the lexical one.-stβ prints miscellaneous information. the extras, the lore π-addβ performs adding operation.-appβ performs appending operation.-repβ performs replacing operation.-inciβ performs integer increment operation. math but make it cunty π₯-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.-desβ visits records in descending order. backwards, but on purpose.-max numβ specifies the maximum number of shown records.-pvβ prints values of records also.
π«Ά EXIT STATUS π«Ά
this command returns 0 on success, another on failure. that's it. that's the whole energy.
π SEE ALSO π
man page Β· 2012-05-24 Β· Kyoto Cabinet Β· kctreemgr(1)
so yeah, that's the whole page bestie π written by the Kyoto Cabinet girlies, dated 2012-05-24, filed under KCTREEMGR(1) in section 1. she ate and left no crumbs. 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