Technology and General Blog

In numerous circumstances, we want to disable some unneeded expert services in Ubuntu to retain the procedure properly maintained. Disabling redundant services allows to improve the system’s efficacy as some of these expert services use the processor and a portion of the memory in the history. Expert services can be disabled briefly or completely, but it depends on your need.

Right before we examine how we can disable providers in Ubuntu, let’s comprehend the initialization procedure of Ubuntu. There are two different initialization systems Ubuntu utilizes. The very first just one is the “upstart” and the second is “systemd”.

The “upstart” is now deprecated and was last applied in Ubuntu 15.04. The init program of existing Ubuntu and numerous other distributions is “systemd”. Both of those methods have their have methods to permit and disable expert services. Due to the fact the most up-to-date distributions have been widely adopted, we will use “systemd” approach to disable a services.

How to Disable a Support in Ubuntu 20.04(LTS), 20.10:

Let’s get started by listing the running expert services in Ubuntu. To list the expert services, use the command stated under:

$ systemctl listing-models –style=provider

The solutions can be filtered by involving the “grep” command:

$ systemctl | grep operating

All the services which are jogging will be exhibited in normal output. To disable a company, use:

$ systemctl disable [service_name]

Use the provider name you want to disable in position of “[service_name]”. The command will disable the assistance and would not enable it even if you restart the technique. For illustration, I am disabling the “apacehe2” assistance from my program I will use:

$ sudo systemctl disable

To verify if the assistance is disabled or not, use:

$ sudo systemctl standing apache2.service

The previously mentioned process will completely disable the “apache2” provider even on restarting the procedure, the provider will stay inactive.

To quickly disable the service, use:

$ sudo systemctl stop [service_name]

I am disabling “apache2” assistance:

$ sudo systemctl halt

Upon rebooting, you will observe that the company will be enabled again since it was quickly stopped.

How to Enable a Assistance in Ubuntu 20.04(LTS), 20.10:

You can briefly begin a disabled support applying:

$ systemctl commence [service_name]

The over command can be employed in a circumstance when you want to use a company momentarily. For instance, the “apache2” can be enabled temporarily utilizing:

$ systemctl start out apache2.assistance

To completely permit a services, use:

$ systemctl allow [service_name]

Exchange the “[service_name]” with the service title you want to permit permanently. I am once more enabling “apache2”, so the command would be:

$ systemctl allow

The “apache2” assistance will continue to be active even upon restarting the process.


There are two unique init methods Ubuntu used, the “upstart” and the “systemd”. Each have diverse procedures to control the running solutions.  The “systemd” is a greatly adopted init procedure as “upstart” has been deprecated. This information showed how to disable a company momentarily and forever in Ubuntu. Numerous products and services in our program just operate in the track record and use the machine’s resources. Disable them and absolutely free-up memory to strengthen the system’s booting time and total efficiency.

Leave a Reply

Your email address will not be published. Required fields are marked *