कसे सुरू, थांबवू, डेबियन Linux मध्ये रीस्टार्ट आणि यादी सेवा?

You require to be root to execute the following commands successfully.

su
 

Start a service

service {service name} start

उदाहरण

service sshd start
 

Stop a service

service {service name} stop

उदाहरण

service sshd stop
 

Restart a service

service {service name} restart

उदाहरण

service sshd stop
 

List all services

service --status-all

आउटपुट

 [ - ]  alsa-utils
 [ - ]  anacron
 [ + ]  avahi-daemon
 [ - ]  bluetooth
 [ - ]  console-setup.sh
 [ + ]  क्रोन
 [ + ]  dbus
 [ + ]  gdm3
 [ - ]  hwclock.sh
 [ - ]  keyboard-setup.sh
 [ + ]  kmod
 [ + ]  minissdpd
 [ + ]  network-manager
 [ - ]  networking
 [ - ]  pppd-dns
 [ + ]  procps
 [ + ]  rsyslog
 [ - ]  saned
 [ + ]  speech-dispatcher
 [ + ]  ssh
 [ + ]  udev
 [ + ]  unattended-upgrades
 [ - ]  x11-common

+ : Running services

– : Stopped services

प्रत्युत्तर सोडा