Elektra  0.9.4
kdb-meta-show(1) -- Print all metakeys along with their value

kdb meta-show <key name>

Where key name is the name of the key the user would like to access.

This command is used to print all metakeys and its values for a given key. A metakey is information stored in a key which describes that key.

The handling of cascading key name does not differ to kdb get. Make sure to use the namespace spec, if you want metadata from there.

This command will return the following values as an exit status:

# Backup-and-Restore: user:/tests/examples
# We use `dump` as storage format here
sudo kdb mount ls.ecf user:/tests/examples dump
# Create the keys we use for the examples
kdb set user:/tests/examples/kdb-meta-show test
kdb meta-set user:/tests/examples/kdb-meta-show meta1 val1
kdb meta-set user:/tests/examples/kdb-meta-show meta2 val2
kdb meta-set user:/tests/examples/kdb-meta-show meta3 val3
kdb meta-set user:/tests/examples/kdb-meta-show meta4 val4
# list all meta keys for /tests/examples/kdb-meta-show
kdb meta-show /tests/examples/kdb-meta-show
#> meta1: val1
#> meta2: val2
#> meta3: val3
#> meta4: val4
kdb rm -r user:/tests/examples
sudo kdb umount user:/tests/examples