From the course: Red Hat Certified System Administrator (EX200) Cert Prep: 1 Deploy, Configure, and Manage (2021)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Get systemd service status

Get systemd service status

- Systemd manages system services in CentOS 7. It also manages a lot of other objects like devices, system timers and targets, the systemd equivalent to run levels. Systemd objects are called units, and for each unit, there's a unit file for configuration. For this course, we are only concerned with service units and service unit files. The command that systemd uses to manage these units is systemctl. To look at our service unit files, type into a terminal, systemctl list-unit-files -at service and hit enter. By default, list unit files -t service will show all enabled service unit files. Enabled meaning services that are configured to start up automatically. By adding -a, it will show both enabled and disabled service unit files. Notice that the systemctl subcommand is list unit files. This means we're just looking at the unit files and their status. We're not yet looking at the running status of services. The…

Contents