{"id":364,"date":"2009-05-22T21:59:50","date_gmt":"2009-05-23T02:59:50","guid":{"rendered":"http:\/\/www.gamescheat.ca\/?p=364"},"modified":"2019-09-04T19:57:40","modified_gmt":"2019-09-05T00:57:40","slug":"determine-the-disk-usage-of-a-file-system-in-linux-or-unix","status":"publish","type":"post","link":"http:\/\/www.gamescheat.ca\/?p=364","title":{"rendered":"Determine the disk usage of a file system in Linux or Unix."},"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 = 468;\ngoogle_ad_height = 60;\ngoogle_ad_format = \"468x60_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>As a server administrator you will find that the df commad is very useful to find out the disk usage of a file system in Unix or Linux.  Depending on the variant of Linux or Unix, the df command also may\/not display the usage of all mounted folders.  Below are some examples.<\/p>\n<p>df<br \/>\nFilesystem           1K-blocks      Used          Available     Use%   Mounted on<br \/>\n\/dev\/md2             279834272  27815436   237574804  11%     \/<br \/>\n\/dev\/md0                101018     15033         80769          16%     \/boot<br \/>\n\/dev\/shm               1037060     0                1037060      0%       \/dev\/shm<\/p>\n<p>The above command displays the total, used and available size.<\/p>\n<p>df -k<br \/>\nFilesystem           1K-blocks      Used        Available     Use% Mounted on<br \/>\n\/dev\/md2             279834272  27815436 237574804  11%   \/<br \/>\n\/dev\/md0             101018        15033       80769          16%   \/boot<br \/>\n\/dev\/shm             1037060      0               1037060      0%     \/dev\/shm<\/p>\n<p>The -k option displays the size in kilobytes.<\/p>\n<p>df -m<br \/>\nFilesystem           1M-blocks      Used       Available Use% Mounted on<br \/>\n\/dev\/md2             273276          27164    232007    11%    \/<br \/>\n\/dev\/md0                    99           15          79            16%    \/boot<br \/>\n\/dev\/shm                1013            0           1013        0%      \/dev\/shm<\/p>\n<p>The -m option displays the size in Mega bytes.<\/p>\n<p>df -h<br \/>\nFilesystem            Size     Used    Avail    Use%  Mounted on<br \/>\n\/dev\/md2              267G   27G     227G   11%     \/<br \/>\n\/dev\/md0               99M    15M      79M     16%    \/boot<br \/>\n\/dev\/shm             1013M  0          1013M  0%      \/dev\/shm<\/p>\n<p>The -h option displays the size in human redable format, in this case giga bytes.<\/p>\n<p>If you just wanted to display the disk usage of a specific folder, the enter the path following the command, as in the example below.<\/p>\n<p>df -h \/boot<br \/>\nFilesystem            Size  Used Avail Use% Mounted on<br \/>\n\/dev\/md0               99M   15M   79M  16% \/boot<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a server administrator you will find that the df commad is very useful to find out the disk usage of a file system in Unix or Linux. Depending on the variant of Linux or Unix, the df command also&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/www.gamescheat.ca\/?p=364\">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\/364"}],"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=364"}],"version-history":[{"count":3,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":1001,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=\/wp\/v2\/posts\/364\/revisions\/1001"}],"wp:attachment":[{"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.gamescheat.ca\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}