From the course: Linux: Kernels and Logging for System Administration

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 - Linux Tutorial

From the course: Linux: Kernels and Logging for System Administration

Start my 1-month free trial

Get systemd service status

- [Instructor] System D manages system services in CentOS 7. It also manages a lot of other objects like devices, system timers, and targets, the System D equivalent to runlevels. System D 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 System D uses to manage these units is "systemctl". To look out 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 System CTL sub command 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 output will be in two columns. The first column is…

Contents