0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linucレベル1勉強メモ #7

Posted at

# 第一章 Linuxのインストールと仮想マシン・コンテナの利用

練習問題1.7
systemdを採用しているシステムで、シングルユーザーモードを開始するコマンドを選択してください。

A. systemctl isolate single

B. systemctl isolate single-user.target

C. systemctl isolate rescue.target

D. systemctl isolate system-single.target

(解答) C.

(解説)
シングルユーザーモード(レスキューモード)は、メンテナンス用のシステム状態です。一般ユーザーのログインはできず、ネットワークも遮断されます。シングルユーザーモードに移行するには、rootユーザーで「systemctl isolate rescue.target」コマンドを実行します。選択肢A, B, Cは存在しないターゲットで使うとエラーになります。

systemdのブートターゲットについて
ターゲットの確認方法は、
$ systemctl get-default
で確認することができます。

システム起動時のログイン方法の設定の仕方について

systemctl set-default ~~~~~

システム終了または再起動する際は、 次のコマンドを使います。

systemctl isolate reboot.target

ターゲットの種類

  • multi-user.target
    CUIログインであることを表している。
  • graphical.target
     グラフィカルログインであることを表している。
  • poweroff.target
     システム終了
  • rescue.target
     レスキュー(シングルユーザーモード)モード
  • reboot.target
     システム再起動
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?