LPIC-1 / GNU・Unixコマンド ・ コマンド問題
$
- nohup command &✓ 正解
- bg command
- fg command
- renice command
💡 nohup はSIGHUPを無視させてコマンドを実行するため、ログアウト後も継続します。背景化のため末尾に & を付けます。
○ nohup command &:正解。nohup command & はSIGHUPを無視させて起動し、ログアウト後も実行を継続させます。
✕ bg command:bg は既に停止中のジョブをバックグラウンドで再開させるコマンドで、新規コマンドの起動指定ではありません。
✕ fg command:fg は停止中・背景のジョブを前面に戻すコマンドで、SIGHUP回避の起動には使えません。
✕ renice command:renice は実行中プロセスの優先度を変更するコマンドで、SIGHUP回避とは無関係です。