Last update: 2019-02-11

SystemD reference sheet


Get default target (runlevel)

<bash>
systemctl get-default

List all targets (runlevels)

<bash>
systemctl --type=target

Set default target (runlevel)

<bash>
systemctl set-default

List all running services

<bash>
systemctl --type=service

See service status

<bash>
systemctl status sshd

Start service

<bash>
systemctl start sshd

Enable service

<bash>
systemctl enable sshd

Writing service scripts

http://0pointer.de/blog/projects/systemd-for-admins-3.html

Disable CTRL-ALT-DEL

<bash>
systemctl mask ctrl-alt-del.target
systemctl daemon-reload


© 2007-2019 Patrick Lambert - All resources on this site are provided under the MIT License - You can contact me at: contact@dendory.net