From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
Unlock this course with a free trial
Join today to access over 24,300 courses taught by industry experts.
systemctl basics - Linux Tutorial
From the course: Complete Guide to Linux Security: Protecting Your Linux Server Environment
systemctl basics
- Systemctl is a command that has many uses in Linux. Why is this command important? Two main reasons. In a nutshell, availability and reducing the attack surface. So you got to watch that threat landscape, my friends. So let's take a look at this slide that we have here. I have the systemctl commands and I have it broken down into two categories. The green section is unit file commands, and the blue section is unit commands. The green section unit file commands has commands such as enable, disable, list unit files. And so what we use systemctl for with these options is to enable or disable services. Likewise, for unit commands, we use systemctl to start or stop services. What's the difference? Well, the green section here has to do with persistence. If I enable a service, it will start up when I start the computer, and it'll start up every time I start the computer. So it is persistent. However, with the blue section with unit commands, when we start and stop services, that is…