\label{doc_help_kdb-namespace_md_md_doc_help_kdb_namespace}%
\Hypertarget{doc_help_kdb-namespace_md_md_doc_help_kdb_namespace}%
 \hypertarget{doc_help_kdb-namespace_md_autotoc_md2986}{}\doxysection{SYNOPSIS}\label{doc_help_kdb-namespace_md_autotoc_md2986}
{\ttfamily kdb namespace $<$key name$>$}

Where {\ttfamily key name} is the name of the key.\hypertarget{doc_help_kdb-namespace_md_autotoc_md2987}{}\doxysection{DESCRIPTION}\label{doc_help_kdb-namespace_md_autotoc_md2987}
This command is used to retrieve the namespace of a key, including the eventual trailing \textquotesingle{}\+:\textquotesingle{}. For the cascading namespace, the empty string is returned.\hypertarget{doc_help_kdb-namespace_md_autotoc_md2988}{}\doxysection{RETURN VALUES}\label{doc_help_kdb-namespace_md_autotoc_md2988}
This command will return the following values as an exit status\+:


\begin{DoxyItemize}
\item 0\+: No errors.
\item 7\+: invalid key name passed, see \mbox{\hyperlink{doc_help_kdb_md}{kdb(1)}} for a list of return codes used by kdb.
\end{DoxyItemize}\hypertarget{doc_help_kdb-namespace_md_autotoc_md2989}{}\doxysection{OPTIONS}\label{doc_help_kdb-namespace_md_autotoc_md2989}

\begin{DoxyItemize}
\item {\ttfamily -\/n}, {\ttfamily -\/-\/no-\/newline}\+: Suppress the newline at the end of the output.
\end{DoxyItemize}\hypertarget{doc_help_kdb-namespace_md_autotoc_md2990}{}\doxysection{EXAMPLES}\label{doc_help_kdb-namespace_md_autotoc_md2990}

\begin{DoxyCode}{0}
\DoxyCodeLine{kdb namespace user:/key/subkey}
\DoxyCodeLine{\#> user:}
\DoxyCodeLine{}
\DoxyCodeLine{kdb namespace /key/subkey}
\DoxyCodeLine{\#>}

\end{DoxyCode}
\hypertarget{doc_help_kdb-namespace_md_autotoc_md2991}{}\doxysection{SEE ALSO}\label{doc_help_kdb-namespace_md_autotoc_md2991}

\begin{DoxyItemize}
\item See \mbox{\hyperlink{doc_help_kdb-basename_md}{kdb-\/basename(1)}} and \mbox{\hyperlink{doc_help_kdb-dirname_md}{kdb-\/dirname(1)}} for other namepart extraction operations.
\item To get keys in shell scripts, you can use \mbox{\hyperlink{doc_help_kdb-sget_md}{kdb-\/sget(1)}}.
\item \mbox{\hyperlink{doc_help_elektra-key-names_md}{elektra-\/key-\/names(7)}} for an explanation of key names. 
\end{DoxyItemize}