manpagez: man pages & more
info gdbm
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

16 Test and modify a GDBM database.

The testgdbm utility allows you to view and modify an existing GDBM database or to create a new one.

When invoked without options, it tries to open a database file called ‘junk.gdbm’, located in the current working directory. You can change this default using the ‘-g’ command line option. This option takes a single argument, specifying the file name to open, e.g.:

$ testgdbm -g file.db

The database will be opened in read-write mode, unless the ‘-r’ option is specified, in which case it will be opened only for reading.

If the database does not exist, testgdbm will create it. There is a special option ‘-n’, which instructs the utility to create a new database. If it is used and if the database already exists, it will be deleted, so use it sparingly.

This document was generated on December 2, 2011 using texi2html 5.0.

© 2000-2019
Individual documents may contain additional copyright information.