FlashKeepers

Linux · CompTIA Linux+

Linux systemd and Service Management

systemctl commands, unit files, and service management concepts on modern Linux distributions using systemd.

30 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone
What is systemd?
A system and service manager for Linux that provides parallel startup and dependency management
Command to start a service immediately
systemctl start <service-name>
Command to stop a service
systemctl stop <service-name>
Command to enable a service to start on boot
systemctl enable <service-name>
Command to disable a service from starting on boot
systemctl disable <service-name>
Command to restart a service
systemctl restart <service-name>
Command to reload a service's configuration without stopping it
systemctl reload <service-name>
Command to check if a service is running
systemctl status <service-name>
Command to list all loaded units
systemctl list-units
Command to list all unit files and their enablement status
systemctl list-unit-files
Primary location for system unit files
/usr/lib/systemd/system/
Location for administrator-created or edited unit files
/etc/systemd/system/
What is a systemd unit file?
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
Metadata like Description, Documentation, Before, After, and Requires directives
Contents of the [Service] section in a unit file
Service-specific settings like ExecStart, Type, Restart, and User

15 more cards in the app