Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
themeMidnight
titleСommands
systemctl restart service_name # Restarts a service. If a service is not behaving correctly, stopped responding, restarting it can often resolve the issue without needing a full system reboot.
When you modify a service config file, using systemctl restart applies the changes immediately. 

systemctl enable service_name # Enables a service to start at boot.
 
kill -9 process_id(PID) # Forces termination of a process.
(No output unless there is an error, the process is terminated forcefully)

...