In this lab, you will identify installed and running services on the system.
Outcomes
A list of active and enabled services on the system.
Reset your serverX system.
List all service units on the system.
[student@serverX ~]$systemctl list-units --type=service
List all socket units, active and inactive, on the system.
[student@serverX ~]$systemctl list-units --type=socket --all
Explore the status of the chronyd service. This service is used for network time synchronization (NTP).
Display the status of the chronyd service. Note the process ID of any active daemons.
[student@serverX ~]$systemctl status chronyd
Confirm that the listed daemons are running.
[student@serverX ~]$ps -pPID
Explore the status of the sshd service. This service is used for secure encrypted communication between systems.
Determine if the sshd service is enabled to start at system boot.
[student@serverX ~]$systemctl is-enabled sshd
Determine if the sshd service is active without displaying all of the status information.
[student@serverX ~]$systemctl is-active sshd
Display the status of the sshd service.
[student@serverX ~]$systemctl status sshd
List the enabled or disabled states of all service units.
[student@serverX ~]$systemctl list-unit-files --type=service