2014-07-02 14:23:36 +04:00
<?xml version='1.0'?> <!-- * - nxml - * -->
2019-03-14 16:40:58 +03:00
< !DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
2023-12-25 17:48:33 +03:00
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
2020-11-09 07:23:58 +03:00
<!-- SPDX - License - Identifier: LGPL - 2.1 - or - later -->
2014-07-02 14:23:36 +04:00
<refentry id= "systemd-path"
2015-02-04 05:14:13 +03:00
xmlns:xi="http://www.w3.org/2001/XInclude">
<refentryinfo >
<title > systemd-path</title>
<productname > systemd</productname>
</refentryinfo>
<refmeta >
<refentrytitle > systemd-path</refentrytitle>
<manvolnum > 1</manvolnum>
</refmeta>
<refnamediv >
<refname > systemd-path</refname>
<refpurpose > List and query system and user paths</refpurpose>
</refnamediv>
<refsynopsisdiv >
<cmdsynopsis >
2018-03-26 10:51:12 +03:00
<command > systemd-path</command>
<arg choice= "opt" rep= "repeat" > OPTIONS</arg>
<arg choice= "opt" rep= "repeat" > NAME</arg>
2015-02-04 05:14:13 +03:00
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 >
<title > Description</title>
<para > <command > systemd-path</command> may be used to query system
and user paths. The tool makes many of the paths described in
<citerefentry > <refentrytitle > file-hierarchy</refentrytitle> <manvolnum > 7</manvolnum> </citerefentry>
2015-10-26 18:10:17 +03:00
available for querying.</para>
2015-02-04 05:14:13 +03:00
2014-08-03 09:11:12 +04:00
<para > When invoked without arguments, a list of known paths and
2015-02-04 05:14:13 +03:00
their current values is shown. When at least one argument is
2014-08-03 09:11:12 +04:00
passed, the path with this name is queried and its value shown.
2015-02-04 05:14:13 +03:00
The variables whose name begins with <literal > search-</literal>
2015-10-26 17:45:12 +03:00
do not refer to individual paths, but instead to a list of
2015-02-04 05:14:13 +03:00
colon-separated search paths, in their order of precedence.</para>
</refsect1>
<refsect1 >
<title > Options</title>
<para > The following options are understood:</para>
<variablelist >
<varlistentry >
<term > <option > --suffix=</option> </term>
2023-08-22 19:52:36 +03:00
<listitem > <para > Printed paths are suffixed by the specified string.</para>
<xi:include href= "version-info.xml" xpointer= "v215" /> </listitem>
2015-02-04 05:14:13 +03:00
</varlistentry>
2024-01-14 16:18:07 +03:00
<xi:include href= "standard-options.xml" xpointer= "no-pager" />
2015-02-04 05:14:13 +03:00
<xi:include href= "standard-options.xml" xpointer= "help" />
<xi:include href= "standard-options.xml" xpointer= "version" />
</variablelist>
</refsect1>
<refsect1 >
<title > Exit status</title>
<para > On success, 0 is returned, a non-zero failure code
otherwise.</para>
</refsect1>
<refsect1 >
<title > See Also</title>
2023-12-22 21:09:32 +03:00
<para > <simplelist type= "inline" >
<member > <citerefentry > <refentrytitle > systemd</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> </member>
<member > <citerefentry > <refentrytitle > file-hierarchy</refentrytitle> <manvolnum > 7</manvolnum> </citerefentry> </member>
</simplelist> </para>
2015-02-04 05:14:13 +03:00
</refsect1>
2014-07-02 14:23:36 +04:00
</refentry>