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