SYSTEMD-PATH(1)

๐Ÿฆ‹ NAME ๐Ÿฆ‹

systemd-path โ€” bestie's little tool for listing and querying system and user paths ๐Ÿ’–


โœจ SYNOPSIS โœจ

systemd-path [OPTIONS...] [NAME...]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

okay so systemd-path is literally your go-to for querying system and user paths. It takes a whole bunch of the paths that file-hierarchy(7) talks about and makes them available for you to ask about, no cap. ๐Ÿซถ

When you run it with no arguments at all, it shows you a full list of known paths and what their current values are. When you pass at least one argument, it queries the path with that name and shows you its value. โœจ

And here's the lil plot twist ๐Ÿ‘€ โ€” variables whose names start with search- don't refer to individual paths. Instead they refer to a list of colon-separated search paths, in their order of precedence. slay.

โš ๏ธ Important vibe check: paths that depend on environment variables are computed with systemd-path's invoked environment, not the system or user manager's environment. So the output of systemd-path may not reflect the behavior of manager processes. fr fr, don't get caught slippin' on that one. ๐Ÿ’€

๐Ÿ’… OPTIONS ๐Ÿ’…

The following options are understood:

  • --suffix= โ€” printed paths get suffixed by the string you specify. Cute lil add-on, honestly. ๐ŸŽ€

Added in version 215.

  • --no-pager โ€” do not pipe output into a pager. Just raw output, straight to your terminal, no middleman. periodt.
  • -h, --help โ€” print a short help text and exit. the classic escape hatch ๐Ÿ’–
  • --version โ€” print a short version string and exit.

๐Ÿ”ฅ EXIT STATUS ๐Ÿ”ฅ

On success, 0 is returned. Otherwise you get a non-zero failure code. that's it, that's the whole rule. โœจ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

systemd(1), file-hierarchy(7)


okay that's the whole page bestie, you ate that reading btw ๐Ÿ‘‘๐Ÿ’œ

this was brought to you by systemd 262.1 โ€” mwah, love you, go query some paths ๐Ÿฆ‹๐ŸŒธ

๐Ÿ“ฆ where this page comes from
  • arch rolling: systemd 262.1-1 ยท LGPL-2.1-or-later AND CC0-1.0 AND GPL-2.0-or-later AND MIT-0
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms