
{"id":16632,"date":"2017-02-24T16:15:50","date_gmt":"2017-02-24T16:15:50","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16632"},"modified":"2017-02-24T16:15:50","modified_gmt":"2017-02-24T16:15:50","slug":"gnu-coreutils-block-size-related-to-df-command","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2017\/02\/24\/gnu-coreutils-block-size-related-to-df-command\/","title":{"rendered":"GNU coreutils: block size related to df command"},"content":{"rendered":"<pre>\nABOUT df\n\ndf (abbreviation for disk free) is a standard Unix command used to display the amount of\navailable disk space for file systems on which the invoking user has appropriate read access.\ndf is typically implemented using the statfs or statvfs system calls.\n<\/pre>\n<p>[bash]<br \/>\n$df<br \/>\nFilesystem     1K-blocks    Used Available Use% Mounted on<br \/>\nudev             1921644       0   1921644   0% \/dev<br \/>\ntmpfs             388676    6508    382168   2% \/run<br \/>\n\/dev\/sda2      475184136 6024592 444951776   2% \/<br \/>\ntmpfs            1943372    1460   1941912   1% \/dev\/shm<br \/>\ntmpfs               5120       4      5116   1% \/run\/lock<br \/>\ntmpfs            1943372       0   1943372   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1         523248    3660    519588   1% \/boot\/efi<br \/>\ntmpfs<br \/>\n[\/bash]             388672     104    388568   1% \/run\/user\/1000<\/p>\n<p>[bash]<br \/>\n$df -h<br \/>\nFilesystem      Size  Used Avail Use% Mounted on<br \/>\nudev            1.9G     0  1.9G   0% \/dev<br \/>\ntmpfs           380M  6.4M  374M   2% \/run<br \/>\n\/dev\/sda2       454G  5.8G  425G   2% \/<br \/>\ntmpfs           1.9G  1.5M  1.9G   1% \/dev\/shm<br \/>\ntmpfs           5.0M  4.0K  5.0M   1% \/run\/lock<br \/>\ntmpfs           1.9G     0  1.9G   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1       511M  3.6M  508M   1% \/boot\/efi<br \/>\ntmpfs           380M  104K  380M   1% \/run\/user\/1000<br \/>\n$export DF_BLOCK_SIZE=2k<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n$df<br \/>\nFilesystem     2K-blocks    Used Available Use% Mounted on<br \/>\nudev              960822       0    960822   0% \/dev<br \/>\ntmpfs             194338    3254    191084   2% \/run<br \/>\n\/dev\/sda2      237592068 3012288 222475896   2% \/<br \/>\ntmpfs             971686     136    971550   1% \/dev\/shm<br \/>\ntmpfs               2560       2      2558   1% \/run\/lock<br \/>\ntmpfs             971686       0    971686   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1         261624    1830    259794   1% \/boot\/efi<br \/>\ntmpfs             194336      50    194286   1% \/run\/user\/1000<br \/>\n$export POSIXLY_CORRECT=1<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n$df<br \/>\nFilesystem     2K-blocks    Used Available Use% Mounted on<br \/>\nudev              960822       0    960822   0% \/dev<br \/>\ntmpfs             194338    3252    191086   2% \/run<br \/>\n\/dev\/sda2      237592068 3018782 222469402   2% \/<br \/>\ntmpfs             971686     618    971068   1% \/dev\/shm<br \/>\ntmpfs               2560       2      2558   1% \/run\/lock<br \/>\ntmpfs             971686       0    971686   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1         261624    1830    259794   1% \/boot\/efi<br \/>\ntmpfs             194336      46    194290   1% \/run\/user\/1000<br \/>\n$set -o posix<br \/>\n[\/bash]<\/p>\n<p>[bash]<br \/>\n$df<br \/>\nFilesystem     2K-blocks    Used Available Use% Mounted on<br \/>\nudev              960822       0    960822   0% \/dev<br \/>\ntmpfs             194338    3252    191086   2% \/run<br \/>\n\/dev\/sda2      237592068 3018774 222469410   2% \/<br \/>\ntmpfs             971686     618    971068   1% \/dev\/shm<br \/>\ntmpfs               2560       2      2558   1% \/run\/lock<br \/>\ntmpfs             971686       0    971686   0% \/sys\/fs\/cgroup<br \/>\n\/dev\/sda1         261624    1830    259794   1% \/boot\/efi<br \/>\ntmpfs             194336      46    194290   1% \/run\/user\/1000<br \/>\n$<br \/>\n[\/bash]<\/p>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Df_(Unix)\">https:\/\/en.wikipedia.org\/wiki\/Df_(Unix)<\/a><br \/>\n<a href=\"https:\/\/www.gnu.org\/software\/coreutils\/manual\/coreutils.html#df-invocation\">https:\/\/www.gnu.org\/software\/coreutils\/manual\/coreutils.html#df-invocation<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT df df (abbreviation for disk free) is a standard Unix command used to display the amount of available disk space for file systems on which the invoking user has appropriate read access. df is typically implemented using the statfs or statvfs system calls. [bash] $df Filesystem 1K-blocks Used Available Use% Mounted on udev 1921644 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2017\/02\/24\/gnu-coreutils-block-size-related-to-df-command\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;GNU coreutils: block size related to df command&#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":[24],"tags":[486],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16632"}],"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=16632"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16632\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}