Starting, stopping, and restarting services varies depending on the distro to some degree But the general concept is the same.
One way to list the services is to run “ls” on the “init.d” directory.
# ls /etc/init.d
I will use “restart” for the examples but this can be replaced with “start” or “stop”. And because the networking service is a fairly common service to restart I will also use that in the following examples. Also, depending on disto and user rights “sudo” may be required.
Ubuntu/debian
# sudo /etc/init.d/networking restart
Redhat
# service network restart
or
# /etc/init.d/network restart


Posted in
Tags: