{"id":362,"date":"2009-05-22T21:35:26","date_gmt":"2009-05-23T02:35:26","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=362"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"how-to-determine-the-folder-size-in-unix-or-linux","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=362","title":{"rendered":"How to determine the folder size in Unix or Linux."},"content":{"rendered":"<div style=\"float: right;\"><div style=\"margin: 15px 15px 15px 15px\";><script type=\"text\/javascript\"><!--\ngoogle_ad_client = \"pub-3319935785736004\";\ngoogle_alternate_color = \"FFFFFF\";\ngoogle_ad_width = 250;\ngoogle_ad_height = 250;\ngoogle_ad_format = \"250x250_as\";\ngoogle_ad_type = \"text_image\";\ngoogle_ad_channel =\"\";\ngoogle_color_border = \"cccccc\";\ngoogle_color_link = \"cc0000\";\ngoogle_color_bg = \"ffffff\";\ngoogle_color_text = \"000000\";\ngoogle_color_url = \"008000\";\n\/\/--><\/script>\n<script type=\"text\/javascript\"\n  src=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\n<\/script><\/div><\/div><p>The du command displays disk usage for each file or folder.  You can use this command to find the size of a folder in Unix or Linux.  Below are some examples.<\/p>\n<p>du -s \/home\/andrew<br \/>\n19112204        \/home\/andrew<br \/>\nThe above command displays the size of the folder \/home\/andrew.  The option -s displays a summarized size, or total size.  If you do not use the -s option then it will list the size of all files and folders in the path \/home\/andrew recursively.<\/p>\n<p>du -sh \/home\/andrew<br \/>\n19G     \/home\/andrew<br \/>\nAdding the -h option displays the size in human redable format.<\/p>\n<p>For more detailed information and option for the du command, use the following command.<br \/>\nman du<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The du command displays disk usage for each file or folder. You can use this command to find the size of a folder in Unix or Linux. Below are some examples. du -s \/home\/andrew 19112204 \/home\/andrew The above command displays&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=362\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[19],"tags":[55,35],"_links":{"self":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/362"}],"collection":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":2,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":1002,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/1002"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}