Redhat Linuxの「jobs」コマンドは何ですか?

Redhat Linuxの「jobs」コマンドは何ですか?

Linuxのコマンドは何jobsで、どのように使用しますか?いくつかの例を挙げてください。

ベストアンサー1

jobsおそらく、シェルに組み込まれたコマンドである可能性があります。 thenを使用している場合は、行の先頭でbash実行して検索します(検索の開始をクリックしてから押します)。man bash以下が表示されます。jobs/^ *jobs

jobs [-lnprs] [ jobspec ... ]
jobs -x command [ args ... ]
        The first form lists the active jobs.  The options have the  following  meanings:
        -l     List process IDs in addition to the normal information.
        -n     Display information only about jobs that have changed status since the
               user was last notified of their status.
        -p     List only the process ID of the job's process group leader.
        -r     Restrict output to running jobs.
        -s     Restrict output to stopped jobs.

簡単なjobs出力例:

$ jobs
[1]  - running    firefox-bin
[2]  + running    emacs .zshrc

おすすめ記事