pstree出力の括弧はどういう意味ですか?

pstree出力の括弧はどういう意味ですか?

pstree出力にプロセスを含めることとの[]違い{}は何ですか?複数のプロセスを指定するためだ[{}]と思います[]。例えば、

init-+-NetworkManager-+-dhclient
     |                |-dnsmasq
     |                `-2*[{NetworkManager}]
     |-accounts-daemon---{accounts-daemon}
     |-acpid

...

     |-gnome-terminal-+-7*[bash---emacs]
     |                |-6*[bash]
     |                |-2*[bash---less]
     |                |-bash-+-2*[grep]
     |                |      |-less
     |                |      `-locate
     |                |-bash-+-less
     |                |      `-pstree
     |                |-bash-+-emacs
     |                |      `-okular---2*[{okular}]
     |                |-gnome-pty-helpe
     |                `-3*[{gnome-terminal}]

とを使用してシェルプロセスでokular実行されるプロセスは1つだけです。なぜ私はそれを持っていますか?nohup&okular---2*[{okular}]

マンページを理解していません。

プロセスのサブスレッドは、中かっこ内に示されているプロセス名を持つ親プロセスの下にあります。

   icecast2---13*[{icecast2}]

ベストアンサー1

からman pstree

pstree  visually  merges  identical  branches by putting them in square
brackets and prefixing them with the repetition count, e.g.

       init-+-getty
            |-getty
            |-getty
            `-getty

becomes

       init---4*[getty]

Child threads of a process are found under the parent process  and  are
shown with the process name in curly braces, e.g.

       icecast2---13*[{icecast2}]
  • []同じ点を表します。
  • {}サブスレッドを表します。

これはn[{process_name}]、親プロセスの下にn個のスレッドがあることを意味しますprocess_name

おすすめ記事