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