]>
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 ZJS |
6 | SPDX-License-Identifier: LGPL-2.1+ |
7 | ||
9a00f57a | 8 | Copyright 2014 Lennart Poettering |
9a00f57a LP |
9 | --> |
10 | ||
11 | <refentry id="systemd-path" | |
798d3a52 ZJS |
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> | |
e12d446b ZJS |
40 | <command>systemd-path</command> |
41 | <arg choice="opt" rep="repeat">OPTIONS</arg> | |
42 | <arg choice="opt" rep="repeat">NAME</arg> | |
798d3a52 ZJS |
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> | |
cd72d204 | 52 | available for querying.</para> |
798d3a52 | 53 | |
b938cb90 | 54 | <para>When invoked without arguments, a list of known paths and |
798d3a52 | 55 | their current values is shown. When at least one argument is |
b938cb90 | 56 | passed, the path with this name is queried and its value shown. |
798d3a52 | 57 | The variables whose name begins with <literal>search-</literal> |
7ca41557 | 58 | do not refer to individual paths, but instead to a list of |
798d3a52 ZJS |
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 | ||
e12d446b | 71 | <listitem><para>Printed paths are suffixed by the specified string.</para></listitem> |
798d3a52 ZJS |
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> | |
9a00f57a LP |
94 | |
95 | </refentry> |