I was facing DNS issues with in my server and finally thought to restart the network service.
root@labadmin-VirtualBox:~# service network-manager restart stop: Unknown job: network-manager start: Unknown job: network-manager
I was wondering whether the service is available or not and did some research to resolve this. I thought to try adding
sudo while executing the command and it worked.
root@labadmin-VirtualBox:~# sudo service network-manager restart network-manager stop/waiting network-manager start/running, process 5711
Can someone explain me what is the difference in execution of the command when executed as root with and without