Skip to main content What is the difference between systemctl enable --now and systemctl start? : r/linuxquestions

What is the difference between systemctl enable --now and systemctl start?

I know that systemctl enable sets the service to start at bootup and systemctl start just starts the service. But it seems like systemctl enable --now does the work of both these commands combined. How does it work?


8 comments

But it seems like systemctl enable --now does the work of both these commands combined.

Yes. That's exactly what it does. There's nothing more to it than that.

10

Okay

1
Continue this thread
[deleted]

Reading the manual helps.

5

Yup, thats the thing with linux that i am realising, scour the manual

1
Continue this thread

I'm confused into why you don't understand even though you've answered your own question.... Why even post this?

3

Enable command makes changes so that the specified service starts on bootup, what i didn't ynderstand was how it does that without restart

0
Continue this thread
Continue this thread