systemctl commands, unit files, and service management concepts on modern Linux distributions using systemd.
30 cards · basic cards · AI-written, checked twice. Edit anything.
- What is systemd?
Show answer
A system and service manager for Linux that provides parallel startup and dependency management
- Command to start a service immediately
Show answer
systemctl start <service-name>
- Command to stop a service
Show answer
systemctl stop <service-name>
- Command to enable a service to start on boot
Show answer
systemctl enable <service-name>
- Command to disable a service from starting on boot
Show answer
systemctl disable <service-name>
- Command to restart a service
Show answer
systemctl restart <service-name>
- Command to reload a service's configuration without stopping it
Show answer
systemctl reload <service-name>
- Command to check if a service is running
Show answer
systemctl status <service-name>
- Command to list all loaded units
Show answer
systemctl list-units
- Command to list all unit files and their enablement status
Show answer
systemctl list-unit-files
- Primary location for system unit files
Show answer
/usr/lib/systemd/system/
- Location for administrator-created or edited unit files
Show answer
/etc/systemd/system/
- What is a systemd unit file?
Show answer
A configuration file in INI format that describes how systemd should manage a service or resource
- Contents of the [Unit] section in a unit file
Show answer
Metadata like Description, Documentation, Before, After, and Requires directives
- Contents of the [Service] section in a unit file
Show answer
Service-specific settings like ExecStart, Type, Restart, and User