2014-07-02 14:23:36 +04:00
<?xml version='1.0'?> <!-- * - nxml - * -->
< !DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
2015-06-18 20:47:44 +03:00
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
2014-07-02 14:23:36 +04:00
<!--
2017-11-18 19:22:32 +03:00
SPDX-License-Identifier: LGPL-2.1+
2014-07-02 14:23:36 +04:00
This file is part of systemd.
Copyright 2014 Lennart Poettering
-->
<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>
<authorgroup >
<author >
<contrib > Developer</contrib>
<firstname > Lennart</firstname>
<surname > Poettering</surname>
<email > lennart@poettering.net</email>
</author>
</authorgroup>
</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>
2018-03-26 10:51:12 +03:00
<listitem > <para > Printed paths are suffixed by the specified string.</para> </listitem>
2015-02-04 05:14:13 +03:00
</varlistentry>
<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>
<para >
<citerefentry > <refentrytitle > systemd</refentrytitle> <manvolnum > 1</manvolnum> </citerefentry> ,
<citerefentry > <refentrytitle > file-hierarchy</refentrytitle> <manvolnum > 7</manvolnum> </citerefentry>
</para>
</refsect1>
2014-07-02 14:23:36 +04:00
</refentry>