GDBM_LOAD(1)

πŸ“¦ version 1.23, in debian bookworm, ubuntu jammy

πŸ’Ύ 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 Β© 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