banner



How To Check Installed Services In Ubuntu

How to Listing Services in Ubuntu Server / Desktop

In this tutorial we are going to learn how to list services in Ubuntu using the command line interface. We will run across how we can list running services and services that are not running.

List Ubuntu Services with Service command

The service  --status-all control will listing all services on your Ubuntu Server (Both running services and Not running Services).

          service  --status-all        

This will show all available services on your Ubuntu System. The status is [ + ] for running services, [ - ] for stopped services.

List Ubuntu Services with Service command

Using the grep command, we can filter the output to show only the running services.

          service --condition-all | grep '\[ + \]'        

To listing ubuntu services that are not running, Type,

          service --condition-all | grep '\[ - \]'        

The service command can be used to listing services in all Ubuntu releases, including (Ubuntu 17, xvi.04, and 14.04).

List Services with systemctl command

Since Ubuntu xv, the services are managed past the systemd. With systemd we tin use systemctl control to become information about running services in our Ubuntu arrangement.

To list all running services on Ubuntu, Type:

          systemctl listing-units        

The output of the command volition look something like this:

          UNIT                      LOAD   ACTIVE SUB       Clarification  apache2.service           loaded active running   LSB: Apache2 web server apparmor.service          loaded active exited    LSB: AppArmor initialization cron.service              loaded active running   Regular  networking.service        loaded active exited    Raise network interfaces nmbd.service              loaded agile running   LSB: start Samba NetBIOS nameserver (nmbd) smbd.service              loaded active running   LSB: offset Samba SMB/CIFS daemon (smbd) ssh.service               loaded active running   OpenBSD   LOAD   = Reflects whether the unit of measurement definition was properly loaded. ACTIVE = The high-level unit of measurement activation state, i.due east. generalization of SUB. SUB    = The low-level unit activation land, values depend on unit of measurement type.                  

To list all services, including inactive units, Blazon:

          systemctl list-units -a        

To List inactive unit, Type:

          systemctl list-units -a --state=inactive        

The systemctl command does not work for Ubuntu 14.04 and earlier releases, instead use the service  --status-all command mentioned above.

How To Check Installed Services In Ubuntu,

Source: https://www.configserverfirewall.com/ubuntu-linux/ubuntu-list-services-command/

Posted by: crusedowasobod.blogspot.com

0 Response to "How To Check Installed Services In Ubuntu"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel