How to Disable Services in Linux
Linux system provides a list of commands to manage running services on a system. This article covers some of the commands that will help manage services.
(1) Display the status of services
sudo systemctl disable apache2
(2) ps command
Display a list of services
You can use grep command with pipe (|) command to identify a specific command
ps ax | grep terminal
Now you can use the kill command to terminate the service
kill -9 <PID>
(3) netstat command
Display the network protocol details such as Type, State, I-Node, etc.
Another script update-rc.d is available on Linux that can be used to disable services.
To remove services
update-rc.d -f apache2 remove
Linux has a lot of flexibility for configuring services on a system. Administrators just need to know the commands that need to be removed or disabled from the system.
Subscribe us to receive more such articles updates in your email.
If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!
Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.