GDBM_LOAD(1)
πΎ GDBM_LOAD(1) β bestie edition πΎ
okay so this is gdbm_load, straight out of the GDBM User Reference manual, and it's literally the glow-up button for your database files. it takes a dump and rebuilds the whole database from it. no cap.
β¨ NAME β¨
gdbm_load β re-create a GDBM database from a dump file. that's it, that's the job π«Ά
πΈ SYNOPSIS πΈ
gdbm_load [-Mnr] [-b NUM] [-c NUM] [-m MODE] [-u NAME|UID[:NAME|GID]]
[--block-size=NUM] [--cache-size=NUM] [--mmap=NUM]
[--mode=MODE] [--no-meta] [--replace]
[--user=NAME|UID[:NAME|GID]] FILE [DB_FILE]
gdbm_load [-Vh] [--help] [--usage] [--version]
π DESCRIPTION π
so the whole vibe is: you hand it a dump file called FILE, and it creates a gdbm database file called DB_FILE. boom. resurrection arc. π¦
and if you don't supply the FILE argument? then it just outputs the created database to the standard error. iconic behavior honestly.
here's the tea though: if your input file is in ASCII dump format, then the mode and ownership of the created database get restored straight from the info sitting in the dump. like it just remembers. main character energy. π
but bestie, you can override all of that with the command line options β peep the next section β¬οΈ
β¨ OPTIONS β¨
-b,--block-size=NUMβ sets block size. π¦-c,--cache-size=NUMβ sets cache size. ποΈ-M,--mmapβ use memory mapping. πΊοΈ-m,--mode=MODEβ set database file mode (that's an octal number, okurrr).-n,--no-metaβ do not attempt to restore database meta-data (that's the mode and ownership, btw).-r,--replaceβ if the database already exists, replace records in it. out with the old π₯-u,--user=NAME|UID[:NAME|GID]β set file ownership. π€-h,--helpβ print a short usage summary. we love a lil recap π--usageβ print a list of available options. the full menu, bestie π-V,--versionβ print program version.
π¦ SEE ALSO π¦
and ngl, if you want the detailed description of gdbm_load and the other gdbm utilities, you gotta hit up the GDBM Manual in Texinfo format. to access it, just run:
info gdbm
periodt. π
π REPORTING BUGS π
found a bug? don't suffer in silence, bestie β report it to <bug-gdbm@gnu.org>. they wanna hear it fr fr.
π COPYRIGHT π
Copyright Β© 2013-2021 Free Software Foundation, Inc
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
π not the "NO WARRANTY" in all caps... they were being so serious and for what
and that's the whole page, bestie! this one's from the GDBM manual, last touched December 25, 2013 β happy holidays to whoever decided that date, hope they were cozy. go rebuild some databases, you absolute icon πβπ
π¦ where this page comes from
- debian bookworm: gdbmtool 1.23-3 Β· GPL-3.0-or-later
- ubuntu jammy: gdbmtool 1.23-1 Β· GPL-3.0-or-later
- Copyright (C) 2011-2022 Free Software Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms