ubuntu:services:list_running_service
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:services:list_running_service [2019/12/08 14:18] – peter | ubuntu:services:list_running_service [2021/06/22 11:26] (current) – [Using systemd Status] peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Ubuntu - Services - List Running Services ====== | ====== Ubuntu - Services - List Running Services ====== | ||
- | ====== Using systemd ====== | + | ===== Using systemd |
+ | |||
+ | <code bash> | ||
+ | systemctl -t service | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | <code bash> | ||
+ | systemctl list-units --type=service | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | UNIT LOAD | ||
+ | accounts-daemon.service | ||
+ | acpid.service | ||
+ | alsa-restore.service | ||
+ | apparmor.service | ||
+ | apport.service | ||
+ | avahi-daemon.service | ||
+ | binfmt-support.service | ||
+ | blk-availability.service | ||
+ | bluetooth.service | ||
+ | ... | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Only running services ===== | ||
+ | |||
+ | <code bash> | ||
+ | systemctl | grep running | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Get Service Settings ===== | ||
+ | |||
+ | <code bash> | ||
+ | systemctl list-unit-files -t service | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | UNIT FILE STATE | ||
+ | accounts-daemon.service | ||
+ | acpid.service | ||
+ | alsa-restore.service | ||
+ | alsa-state.service | ||
+ | alsa-utils.service | ||
+ | anacron.service | ||
+ | apparmor.service | ||
+ | apport-autoreport.service | ||
+ | apport-forward@.service | ||
+ | apport.service | ||
+ | apt-daily-upgrade.service | ||
+ | apt-daily.service | ||
+ | autovt@.service | ||
+ | avahi-daemon.service | ||
+ | binfmt-support.service | ||
+ | blk-availability.service | ||
+ | bluetooth.service | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Using systemd Status | ||
<code bash> | <code bash> | ||
Line 30: | Line 99: | ||
│ │ │ │ ├─19343 / | │ │ │ │ ├─19343 / | ||
│ │ │ │ ├─19628 / | │ │ │ │ ├─19628 / | ||
- | ... | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <code bash> | ||
- | systemctl -t service | ||
- | </ | ||
- | |||
- | returns: | ||
- | |||
- | <code bash> | ||
- | UNIT LOAD | ||
- | accounts-daemon.service | ||
- | acpid.service | ||
- | alsa-restore.service | ||
- | apparmor.service | ||
- | apport.service | ||
- | avahi-daemon.service | ||
- | binfmt-support.service | ||
- | blk-availability.service | ||
- | bluetooth.service | ||
- | bolt.service | ||
- | colord.service | ||
- | console-setup.service | ||
- | containerd.service | ||
- | cron.service | ||
- | cups-browsed.service | ||
- | cups.service | ||
- | dbus.service | ||
- | docker.service | ||
- | ebtables.service | ||
- | expressvpn.service | ||
- | fwupd.service | ||
- | gdm.service | ||
- | grub-common.service | ||
- | irqbalance.service | ||
- | kerneloops.service | ||
- | keyboard-setup.service | ||
- | kmod-static-nodes.service | ||
- | libvirt-guests.service | ||
- | libvirtd.service | ||
- | lm-sensors.service | ||
- | lvm2-lvmetad.service | ||
- | lvm2-monitor.service | ||
- | lvm2-pvscan@8: | ||
- | ModemManager.service | ||
- | networkd-dispatcher.service | ||
- | networking.service | ||
... | ... | ||
</ | </ |
ubuntu/services/list_running_service.1575814688.txt.gz · Last modified: 2020/07/15 09:30 (external edit)