Services
What is a Linux service?
Description
Linux services are applications or processes that run in the background either because they're actively doing something or waiting to do something.
An example service would be
OpenBSD Secure Shell server
, a service that allows one to connect to the system via SSH.
Interacting with Services
systemctl
is the system manager tool which is responsible for managing services.systemctl list-unit-files
- View all services available.
systemctl status ssh
- Gets information on the status of ssh
sudo systemctl start ssh
- Starts the ssh servicesudo systemctl stop ssh
- Stops the ssh servicesudo systemctl enable ssh
- Enables the ssh service to run on system bootsudo systemctl disable ssh
- Disables the ssh service from running on system boot
Last updated