Linux 101 : Systemctl Error : Failed to restart network.service: Unit network.service not found.



When we want to restart the "network" service after modifying the configuration, we get the below error after running the "systemctl" command:


Most likely the network service name is different on the Linux machine we are working on.
We run the below command to look for the right name of the networking service:



Remark:

We use the "-i" option for "grep" to ignore uppercase, so "N" will be the same as "n".
After finding the service name which is "NetworkManager.service", we can restart the networking using :


Comments

Leave as a comment:

Archive