What command shows you the status of the service?
systemctl status ssh.service
What are daemons in the context of Linux?
Processes that belong to the system or a service, start at bootup, and run in the background
Daemons affect all users and typically end with the letter ‘d’, as in systemd.
What is the first process upon bootup in Linux?
systemd
Systemd has a PID of 1 and manages various types of units.
Name the three types of units managed by systemd.
Services function as web servers, sockets handle communication, and paths relate to files.
What command is used to control systemd?
systemctl
This command allows users to manage services sockets and paths
How do you show only active services using systemctl?
$systemctl list-units –type=service
This command filters the output to display only active services.
What command checks if a service is active?
$systemctl is-active sshd.service
This command returns the active status of the specified service.
To start a stopped service, which command would you use?
$sudo systemctl start sshd.service
This command initiates the specified service.
What command stops an active service?
$sudo systemctl stop sshd.service
This command halts the specified service.
If you make configuration changes to a service, what command do you use to restart it?
$sudo systemctl restart sshd.service
Restarting the service loads the new configuration into memory.
What command is used to reload a service without changing its PID?
$sudo systemctl reload sshd.service
This command allows the service to load new information without a full restart.
How can you view the dependencies for a service?
$sudo systemctl list-dependencies sshd.service
This command shows the files required for the service to run.
What does masking a service do?
Prevents a service from accidentally being started
Use $sudo systemctl mask sshd.service to mask and $sudo systemctl unmask sshd.service to unmask.
To enable a service to start automatically at bootup, which command is used?
$sudo systemctl enable sshd.service
This command sets the service to launch automatically upon system startup. can do same thing for disabling.
Fill in the blank: In Linux, just because an application is installed doesn’t mean it is _______.
running
You must start and enable the service for it to be available for use.