]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-path.xml
859f175e286ca219983e4b73a1d15062129cbff7
[thirdparty/systemd.git] / man / systemd-path.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4
5 <!--
6 SPDX-License-Identifier: LGPL-2.1+
7
8 Copyright 2014 Lennart Poettering
9 -->
10
11 <refentry id="systemd-path"
12 xmlns:xi="http://www.w3.org/2001/XInclude">
13
14 <refentryinfo>
15 <title>systemd-path</title>
16 <productname>systemd</productname>
17
18 <authorgroup>
19 <author>
20 <contrib>Developer</contrib>
21 <firstname>Lennart</firstname>
22 <surname>Poettering</surname>
23 <email>lennart@poettering.net</email>
24 </author>
25 </authorgroup>
26 </refentryinfo>
27
28 <refmeta>
29 <refentrytitle>systemd-path</refentrytitle>
30 <manvolnum>1</manvolnum>
31 </refmeta>
32
33 <refnamediv>
34 <refname>systemd-path</refname>
35 <refpurpose>List and query system and user paths</refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <cmdsynopsis>
40 <command>systemd-path</command>
41 <arg choice="opt" rep="repeat">OPTIONS</arg>
42 <arg choice="opt" rep="repeat">NAME</arg>
43 </cmdsynopsis>
44 </refsynopsisdiv>
45
46 <refsect1>
47 <title>Description</title>
48
49 <para><command>systemd-path</command> may be used to query system
50 and user paths. The tool makes many of the paths described in
51 <citerefentry><refentrytitle>file-hierarchy</refentrytitle><manvolnum>7</manvolnum></citerefentry>
52 available for querying.</para>
53
54 <para>When invoked without arguments, a list of known paths and
55 their current values is shown. When at least one argument is
56 passed, the path with this name is queried and its value shown.
57 The variables whose name begins with <literal>search-</literal>
58 do not refer to individual paths, but instead to a list of
59 colon-separated search paths, in their order of precedence.</para>
60 </refsect1>
61
62 <refsect1>
63 <title>Options</title>
64
65 <para>The following options are understood:</para>
66
67 <variablelist>
68 <varlistentry>
69 <term><option>--suffix=</option></term>
70
71 <listitem><para>Printed paths are suffixed by the specified string.</para></listitem>
72 </varlistentry>
73
74 <xi:include href="standard-options.xml" xpointer="help" />
75 <xi:include href="standard-options.xml" xpointer="version" />
76 </variablelist>
77
78 </refsect1>
79
80 <refsect1>
81 <title>Exit status</title>
82
83 <para>On success, 0 is returned, a non-zero failure code
84 otherwise.</para>
85 </refsect1>
86
87 <refsect1>
88 <title>See Also</title>
89 <para>
90 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
91 <citerefentry><refentrytitle>file-hierarchy</refentrytitle><manvolnum>7</manvolnum></citerefentry>
92 </para>
93 </refsect1>
94
95 </refentry>