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