↑ ↓ select, Enter open, Esc close

Show a service's unit file including overrides

Adjust the values, the command updates live
user@server
systemctl cat mariadb

Prints the unit file and all associated drop-ins, each with a comment naming the file path. This shows exactly the configuration systemd actually uses, even when parts have been overridden under /etc/systemd/system/<unit>.d/. Individual effective values are available via systemctl show <unit> -p <Property>.

Also searched as

  • where is the service file
  • show unit file
  • view service configuration
  • which overrides exist for the service

Related one-liners

All in systemd

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.