ubuntu:services:list_running_service
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ubuntu:services:list_running_service [2019/12/04 20:39] – created 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> | ||
systemctl status | systemctl status | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | ● peter-bigmamba | ||
+ | State: running | ||
+ | Jobs: 0 queued | ||
+ | | ||
+ | Since: Tue 2019-12-03 19:02:51 GMT; 4 days ago | ||
+ | | ||
+ | | ||
+ | │ ├─user-1000.slice | ||
+ | │ │ ├─user@1000.service | ||
+ | │ │ │ ├─gvfs-goa-volume-monitor.service | ||
+ | │ │ │ │ └─19454 / | ||
+ | │ │ │ ├─xdg-permission-store.service | ||
+ | │ │ │ │ └─19404 / | ||
+ | │ │ │ ├─evolution-calendar-factory.service | ||
+ | │ │ │ │ ├─19690 / | ||
+ | │ │ │ │ └─19738 / | ||
+ | │ │ │ ├─gvfs-daemon.service | ||
+ | │ │ │ │ ├─19338 / | ||
+ | │ │ │ │ ├─19343 / | ||
+ | │ │ │ │ ├─19628 / | ||
+ | ... | ||
</ | </ | ||
ubuntu/services/list_running_service.1575491949.txt.gz · Last modified: 2020/07/15 09:30 (external edit)