Ubuntu24.04 不要なサービスを無効化する方法

環境
Ubuntu24.04

1.現在動作しているサービスの一覧を表示します。

$ systemctl list-units --type=service --state=running

無効化しても問題ないサービスの例を以下に示してます。
Bluetooth(bluetooth.service)
印刷サービス(cups.service)
スキャナーサービス(saned.service)
リモートデスクトップ(vncserver.service)

不要なサービスを一時的に停止する場合は以下のコマンドを使用します。
$ sudo systemctl stop [サービス名]
$ sudo systemctl stop bluetooth.service

サービスを永続的に無効化する
$ sudo systemctl disable [サービス名]

$ sudo systemctl disable bluetooth.service)

サービスの状態を確認する
$ systemctl status [サービス名]

IT

Posted by arkgame