Ubuntu 20.04でserviceの一覧を取得
1.OSバージョンを確認
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
2.以下のコマンドで一覧を取得
# systemctl list-unit-files --type=service
実行結果
NIT FILE STATE VENDOR PRESET accounts-daemon.service enabled enabled acpid.service disabled enabled alsa-restore.service static enabled alsa-state.service static enabled 略