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

kdb namespace <key name>

Where key name is the name of the key.

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

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

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