
{"id":16073,"date":"2014-11-22T08:29:12","date_gmt":"2014-11-22T08:29:12","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16073"},"modified":"2014-11-22T08:29:12","modified_gmt":"2014-11-22T08:29:12","slug":"hacking-with-walking-a-process-tree-with-pstree","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2014\/11\/22\/hacking-with-walking-a-process-tree-with-pstree\/","title":{"rendered":"Hacking with walking a process tree with pstree"},"content":{"rendered":"<pre>\npstree is a small, command line (i.e., all-text mode) program\nthat displays the processes (i.e., executing instances of programs)\non the system in the form of a tree diagram. It differs from the\nmuch more commonly used (and more complex) ps program in a number\nof respects, including that the latter shows the processes in a list\nrather than a tree diagram but provides more detailed information\nabout them.\n\nsource : http:\/\/www.linfo.org\/pstree.html\n\n<\/pre>\n<pre>\n$pstree -a -p 2658\nchromium,2658\n  \u251c\u2500{Chrome_ChildIOT},2661\n  \u251c\u2500{CompositorRaste},2665\n  \u251c\u2500{Compositor},2664\n  \u251c\u2500{HTMLParserThrea},2666\n  \u251c\u2500{OptimizingCompi},2662\n  \u2514\u2500{v8:SweeperThrea},2663\n$pstree -a -p 1585\ngnome-terminal-,1585\n  \u251c\u2500bash,1590\n  \u2502   \u2514\u2500pstree,2884 -a -p 1585\n  \u251c\u2500bash,2847\n  \u2502   \u2514\u2500top,2855\n  \u251c\u2500gnome-pty-helpe,1589\n  \u251c\u2500{dconf worker},1587\n  \u251c\u2500{gdbus},1586\n  \u2514\u2500{gmain},1591\n$pstree -a -p 28\n(kworker\/0:1,28)\n$pstree -a -p 27\n(kworker\/1:1,27)\n$pstree -a -p 2855\ntop,2855\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>pstree is a small, command line (i.e., all-text mode) program that displays the processes (i.e., executing instances of programs) on the system in the form of a tree diagram. It differs from the much more commonly used (and more complex) ps program in a number of respects, including that the latter shows the processes in &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2014\/11\/22\/hacking-with-walking-a-process-tree-with-pstree\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Hacking with walking a process tree with pstree&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[1303],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16073"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16073"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16073\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}