Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Linux では、フォアグラウンド ジョブとバックグラウンド ジョブの違いは何ですか?
フォアグラウンド ジョブでは、すべての入力がプロセスに送られます( を押したときに生成される をstdin含むため、プロセスがフォアグラウンドにある場合でもプロセスを強制終了できます)。SIGINTCTRL-C
stdin
SIGINT
CTRL-C
バックグラウンド ジョブでは、代わりに入力がシェル プロセスに送信されるため、シェル プロンプトが表示され、コマンドを実行できます。