$darkmode
Elektra 0.11.0
kdb-namespace(1) – Get the namespace of a key name

SYNOPSIS

kdb namespace <key name>

Where key name is the name of the key.

DESCRIPTION

This command is used to retrieve the namespace of a key, including the eventual trailing ':'. For the cascading namespace, the empty string is returned.

RETURN VALUES

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

  • 0: No errors.
  • 7: invalid key name passed, see kdb(1) for a list of return codes used by kdb.

OPTIONS

  • -n, --no-newline: Suppress the newline at the end of the output.

EXAMPLES

kdb namespace user:/key/subkey
#> user:
kdb namespace /key/subkey
#>

SEE ALSO