システムアーキテクチャ
グラフィカルログイン状態で稼働しているsystemd環境のサーバーを、一時的にテキストのみのマルチユーザーモードへ切り替えたい。root権限で実行すべきコマンドはどれか。
- Asystemctl isolate graphical.target
- Bshutdown -h now
- ✓systemctl isolate multi-user.target
- Dsystemctl mask multi-user.target
解説
systemctl isolate multi-user.targetは指定したターゲットへ即座に切り替える操作であり、テキストのみのマルチユーザーモードに移行できる。shutdown -h nowはシステム停止、mask は起動禁止設定であり目的に合わない。
根拠LPIC-1 101.3 ランレベル/ブートターゲットの変更とシステムのシャットダウンまたは再起動