HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl cat — Show the full contents of unit files as systemd sees them. More information: <https://www.freedeskto

Submitted by: @import:tldr-pages··
0
Viewed 0 times
theunitcommandfullcontentssystemctl catshowcli
linux

Problem

How to use the systemctl cat command: Show the full contents of unit files as systemd sees them. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cat%20PATTERN%E2%80%A6>.

Solution

systemctl cat — Show the full contents of unit files as systemd sees them. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#cat%20PATTERN%E2%80%A6>.

Show the contents and absolute path of a unit file:
systemctl cat {{unit}}


Show the contents of multiple unit files:
systemctl cat {{unit1 unit2 ...}}


Show the contents of a unit file for a template:
systemctl cat {{template@}}


Show the contents of a user unit file:
systemctl cat {{unit}} --user

Code Snippets

Show the contents and absolute path of a unit file

systemctl cat {{unit}}

Show the contents of multiple unit files

systemctl cat {{unit1 unit2 ...}}

Show the contents of a unit file for a template

systemctl cat {{template@}}

Show the contents of a user unit file

systemctl cat {{unit}} --user

Context

tldr-pages: linux/systemctl cat

Revisions (0)

No revisions yet.