restart network manager linux ubuntu code example
Example 1: how to restart the network in ubuntu
$ sudo service network-manager restart
Example 2: ubuntu restart systemctl
systemctl restart <name>
$ sudo service network-manager restart
systemctl restart <name>