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:17] – 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 / | ||
- | │ │ │ │ ├─25640 / | ||
- | │ │ │ │ └─25665 / | ||
- | │ │ │ ├─evolution-source-registry.service | ||
- | │ │ │ │ └─19417 / | ||
- | │ │ │ ├─gvfs-udisks2-volume-monitor.service | ||
- | │ │ │ │ └─19441 / | ||
- | │ │ │ ├─gnome-terminal-server.service | ||
- | │ │ │ │ ├─15448 bash | ||
- | │ │ │ │ ├─17201 ssh 192.168.1.2 | ||
- | │ │ │ │ ├─20355 bash | ||
- | │ │ │ │ ├─21411 / | ||
- | │ │ │ │ ├─21421 bash | ||
- | │ │ │ │ ├─22489 bash | ||
- | │ │ │ │ ├─27701 / | ||
- | │ │ │ │ ├─29173 systemctl status | ||
- | │ │ │ │ └─29174 pager | ||
- | │ │ │ ├─init.scope | ||
- | │ │ │ │ ├─19179 / | ||
- | │ │ │ │ └─19180 (sd-pam) | ||
- | │ │ │ ├─gvfs-gphoto2-volume-monitor.service | ||
- | │ │ │ │ └─19446 / | ||
- | │ │ │ ├─at-spi-dbus-bus.service | ||
- | │ │ │ │ ├─19308 / | ||
- | │ │ │ │ ├─19313 / | ||
- | │ │ │ │ └─19315 / | ||
- | │ │ │ ├─gvfs-metadata.service | ||
- | │ │ │ │ └─19778 / | ||
- | │ │ │ ├─dbus.service | ||
- | │ │ │ │ ├─19203 / | ||
- | │ │ │ │ ├─19397 / | ||
- | │ │ │ │ ├─19412 / | ||
- | │ │ │ │ ├─19424 / | ||
- | │ │ │ │ ├─19457 / | ||
- | │ │ │ │ ├─19686 / | ||
- | │ │ │ │ └─25318 / | ||
- | │ │ │ ├─evolution-addressbook-factory.service | ||
- | │ │ │ │ ├─19752 / | ||
- | │ │ │ │ └─19760 / | ||
- | │ │ │ ├─gvfs-mtp-volume-monitor.service | ||
- | │ │ │ │ └─19469 / | ||
- | │ │ │ ├─gvfs-afc-volume-monitor.service | ||
- | │ │ │ │ └─19464 / | ||
- | │ │ │ └─evince.service | ||
- | │ │ │ | ||
- | │ │ └─session-4.scope | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | │ │ | ||
- | ... | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | <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.1575814639.txt.gz · Last modified: 2020/07/15 09:30 (external edit)