{"id":86,"date":"2019-10-04T13:19:07","date_gmt":"2019-10-04T12:19:07","guid":{"rendered":"http:\/\/www.qpcoaching.co.uk\/qedevelopment.co.uk\/?p=86"},"modified":"2020-08-13T19:20:49","modified_gmt":"2020-08-13T18:20:49","slug":"linux-commands-tree","status":"publish","type":"post","link":"https:\/\/qedevelopment.co.uk\/?p=86","title":{"rendered":"Linux Commands: tree"},"content":{"rendered":"\n<p>The tree command produces a recursive, depth indented directory\/file listing, followed by a count of the number of files and directories found.<\/p>\n\n\n\n<p>By default the tree command is not installed. Type one of the following according to the type of Linux installation you have.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt-get install tree\n$ yum install tree<\/pre>\n\n\n\n<p>To list the contents of the directory test, descending all paths, type the following<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ tree test\ntree\n|-- foo1.txt\n|-- foo2.txt\n'-- foodir\n    '-- foo3.txt<\/pre>\n\n\n\n<p>To limit the directory level descended into append the option -L to the tree command followed by the number of levels you wish to limit to.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ tree test -L 1\ntree\n|-- foo1.txt\n|-- foo2.txt\n'-- foodir<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tree command produces a recursive, depth indented directory\/file listing, followed by a count of the number of files and directories found. By default the tree command is not installed. Type one of the following according to the type of Linux installation you have. $ sudo apt-get install tree $ yum install tree To list &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/qedevelopment.co.uk\/?p=86\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Linux Commands: tree&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[11],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/86"}],"collection":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86"}],"version-history":[{"count":6,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/86\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qedevelopment.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}