{"id":5737,"date":"2016-05-19T12:42:35","date_gmt":"2016-05-19T12:42:35","guid":{"rendered":"https:\/\/bodhost.com\/kb\/?p=5737"},"modified":"2026-02-26T14:03:11","modified_gmt":"2026-02-26T14:03:11","slug":"check-your-disk-space","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/","title":{"rendered":"Ten Simple Commands to Check Your Disk Space"},"content":{"rendered":"<p>The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine. There are several parameter options in which the du command utilized to get the results in many formats. Additionally, the du command used in a recurrent manner.<\/p>\n<p>Below are the ten useful \u2018du\u2019 commands with their examples. That will help you to calculate the disk space occupied by the files and directories in Linux.<\/p>\n<ol>\n<li>To calculate the disk space summary of a \/home\/bodhost directory tree along with its sub-directories, enter the below command \u2013\n<pre>[root@bodhost]# du\u00a0 \/home\/bodhost<br \/><br \/>40\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads<br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/plugins<br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/extensions<br \/>12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla<br \/>12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.ssh<br \/>689112\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10<br \/>689360\u00a0\u00a0 \/home\/bodhost<\/pre>\n<\/li>\n<li>\n<p>The output displays the number of disk blocks in the \/home\/bodhost directory as well as its sub-directories.<\/p>\n<p>If you want the results in \u201cHuman Readable Format\u201d, use the \u201c-h\u201d option with the \u201cdu\u201d command. With this command, you will see the sizes in Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, etc.<\/p>\n<pre>[root@bodhost]# du -h \/home\/bodhost<br \/><br \/>40K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/downloads<br \/>4.0K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/plugins<br \/>4.0K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/extensions<br \/>12K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla<br \/>12K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.ssh<br \/>673M\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10<br \/>674M\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost<\/pre>\n<\/li>\n<li>For get the summary of a grand total disk usage size of a directory. The option \u201c-s\u201d can be used as follows \u2013\n<pre>[root@bodhost]# du -sh \/home\/bodhost<br \/><br \/>674M\u00a0\u00a0\u00a0 \/home\/bodhost<\/pre>\n<\/li>\n<li>You can use \u201c-a\u201d flag with \u201cdu\u201d command for displaying the files and directories\u2019 usage.\n<pre>[root@bodhost]# du -a \/home\/bodhost<br \/><br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.bash_logout<br \/>12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/uploadprogress-1.0.3.1.tgz<br \/>24\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0\/home\/bodhost\/downloads\/Phpfiles-org.tar.bz2<br \/>40\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/downloads<br \/>12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/uploadprogress-1.0.3.1.tgz<br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/plugins<br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/extensions<br \/>12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla<br \/>4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bashrc<br \/>689108\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/Ubuntu-12.10\/ubuntu-12.10-server-i386.iso<br \/>689112\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/Ubuntu-12.10<br \/>689360\u00a0\u00a0\u00a0\u00a0\/home\/bodhost <\/pre>\n<\/li>\n<li>If you use the \u201c-a\u201d flag with \u201c-h\u201d, you will get the output in a human-readable format i.e. Kilobytes, Megabytes, etc.\n<pre class=\"wp-block-preformatted\">[root@bodhost]# du -ah \/home\/bodhost\r\n\r\n4.0K\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_logout\r\n12K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/uploadprogress-1.0.3.1.tgz\r\n24K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/Phpfiles-org.tar.bz2\r\n40K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\r\n12K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/uploadprogress-1.0.3.1.tgz\r\n4.0K\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/plugins\r\n4.0K\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/extensions\r\n12K\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\r\n4.0K\u00a0\u00a0\u00a0 \u00a0\u00a0\/home\/bodhost\/.bashrc\r\n673M\u00a0\u00a0\u00a0   \/home\/bodhost\/Ubuntu-12.10\/ubuntu-12.10-server-i386.iso\r\n673M\u00a0\u00a0\u00a0   \/home\/bodhost\/Ubuntu-12.10\r\n674M\u00a0\u00a0\u00a0   \/home\/bodhost <\/pre>\n<\/li>\n<li>To find the disk usage of a directory tree with its sub-trees in Kilobyte blocks, use the \u201c-k\u201d. Note: the size displayed in 1024 bytes units.\n<pre class=\"wp-block-preformatted\">[root@bodhost]# du -k \/home\/bodhost\r\n\r\n40\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/downloads\r\n4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/plugins\r\n4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/extensions\r\n12 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\r\n12\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.ssh\r\n689112\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\r\n689360\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost <\/pre>\n<\/li>\n<li>To get the information about disk usage of the directory tree and its sub-trees in Megabytes (MB). Only, use the \u201c-mh\u201d as follows. The \u201c-m\u201d flag calculates the blocks in MB units and \u201c-h\u201d stands for human-readable format.\n<pre class=\"wp-block-preformatted\">[root@bodhost]# du -mh \/home\/bodhost\r\n\r\n40K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/plugins\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/extensions\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.ssh\r\n673M\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\r\n674M\u00a0\u00a0\u00a0 \/home\/bodhost <\/pre>\n<\/li>\n<li>If you need to calculate the grand total usage of disk space at the last line, use the \u201c-c\u201d flag. For example, if your directory has required 674MB space than the last two lines of the output will be as below \u2013\n<pre class=\"wp-block-preformatted\">[root@bodhost]# du -ch \/home\/bodhost\r\n\r\n40K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/plugins\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/extensions\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.ssh\r\n673M\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\r\n674M\u00a0\u00a0\u00a0 \/home\/bodhost\r\n674M\u00a0\u00a0\u00a0 total <\/pre>\n<\/li>\n<li>If you want to exclude the \u201c.txt\u201d files while calculating the total directory size, use the flag \u201c-exclude\u201d and the output will be seen as below \u2013\n<pre class=\"wp-block-preformatted\">[root@tecmint]# du -ah --exclude=\"*.txt\" \/home\/tecmint\r\n\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_logout\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/uploadprogress-1.0.3.1.tgz\r\n24K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/Phpfiles-org.tar.bz2\r\n40K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/uploadprogress-1.0.3.1.tgz\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_history\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_profile\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/plugins\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/extensions\r\n12K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.bashrc\r\n24K\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Phpfiles-org.tar.bz2\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/geoipupdate.sh\r\n4.0K\u00a0\u00a0\u00a0 \/home\/bodhost\/.zshrc\r\n120K\u00a0\u00a0\u00a0 \/home\/bodhost\/goaccess-0.4.2.tar.gz.1\r\n673M\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\/ubuntu-12.10-server-i386.iso\r\n673M\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\r\n674M\u00a0\u00a0\u00a0 \/home\/bodhost<\/pre>\n<\/li>\n<li>Use the flag \u201c-time\u201d for displaying the disk usage based on time modification as below \u2013\n<pre class=\"wp-block-preformatted\">[root@tecmint]# du -ha --time \/home\/tecmint\r\n\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_logout\r\n12K\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:48\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/uploadprogress-1.0.3.1.tgz\r\n24K\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:48\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\/Phpfiles-org.tar.bz2\r\n40K\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:48\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/downloads\r\n12K\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/uploadprogress-1.0.3.1.tgz\r\n4.0K\u00a0\u00a0\u00a0 2012-10-13 00:11\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_history\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bash_profile\r\n0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/xyz.txt\r\n0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/abc.txt\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\/home\/bodhost\/.mozilla\/plugins\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\/extensions\r\n12K\u00a0\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.mozilla\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.bashrc\r\n24K\u00a0\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Phpfiles-org.tar.bz2\r\n4.0K\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/geoipupdate.sh\r\n4.0K\u00a0\u00a0\u00a0 2012-10-12 22:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/.zshrc\r\n120K\u00a0\u00a0\u00a0 2013-01-19 18:32\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/goaccess-0.4.2.tar.gz.1\r\n673M\u00a0\u00a0\u00a0 2013-01-19 18:51\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\/ubuntu-12.10-server-i386.iso\r\n673M\u00a0\u00a0\u00a0 2013-01-19 18:51\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost\/Ubuntu-12.10\r\n674M\u00a0\u00a0\u00a0 2013-01-19 18:52\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/home\/bodhost<\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine. There are several parameter options&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":15,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[666],"tags":[758,757],"class_list":["post-5737","post","type-post","status-publish","format-standard","hentry","category-general","tag-du-command-in-linux","tag-linux-disk-space-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ten Simple Commands to Check Your Disk Space<\/title>\n<meta name=\"description\" content=\"The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ten Simple Commands to Check Your Disk Space\" \/>\n<meta property=\"og:description\" content=\"The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2016-05-19T12:42:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:03:11+00:00\" \/>\n<meta name=\"author\" content=\"anilr\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"anilr\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/\"},\"author\":{\"name\":\"anilr\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8871ea0c76482a5a482e48538ae4dbb3\"},\"headline\":\"Ten Simple Commands to Check Your Disk Space\",\"datePublished\":\"2016-05-19T12:42:35+00:00\",\"dateModified\":\"2026-02-26T14:03:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/\"},\"wordCount\":362,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"du command in linux\",\"linux disk space command\"],\"articleSection\":[\"General Discussion\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/\",\"name\":\"Ten Simple Commands to Check Your Disk Space\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2016-05-19T12:42:35+00:00\",\"dateModified\":\"2026-02-26T14:03:11+00:00\",\"description\":\"The \u2018du\u2019 command in Linux is a standard Unix\\\/Linux command to check the capacity of the disk used by files and directories on a machine.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/check-your-disk-space\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"General Discussion\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/general\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ten Simple Commands to Check Your Disk Space\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/8871ea0c76482a5a482e48538ae4dbb3\",\"name\":\"anilr\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g\",\"caption\":\"anilr\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/anilr\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ten Simple Commands to Check Your Disk Space","description":"The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/","og_locale":"en_US","og_type":"article","og_title":"Ten Simple Commands to Check Your Disk Space","og_description":"The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine.","og_url":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2016-05-19T12:42:35+00:00","article_modified_time":"2026-02-26T14:03:11+00:00","author":"anilr","twitter_card":"summary_large_image","twitter_misc":{"Written by":"anilr","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/"},"author":{"name":"anilr","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/8871ea0c76482a5a482e48538ae4dbb3"},"headline":"Ten Simple Commands to Check Your Disk Space","datePublished":"2016-05-19T12:42:35+00:00","dateModified":"2026-02-26T14:03:11+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/"},"wordCount":362,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["du command in linux","linux disk space command"],"articleSection":["General Discussion"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/","url":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/","name":"Ten Simple Commands to Check Your Disk Space","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2016-05-19T12:42:35+00:00","dateModified":"2026-02-26T14:03:11+00:00","description":"The \u2018du\u2019 command in Linux is a standard Unix\/Linux command to check the capacity of the disk used by files and directories on a machine.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/check-your-disk-space\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"General Discussion","item":"https:\/\/www.bodhost.com\/kb\/category\/general\/"},{"@type":"ListItem","position":2,"name":"Ten Simple Commands to Check Your Disk Space"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/8871ea0c76482a5a482e48538ae4dbb3","name":"anilr","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/11307531bf21385b7c7046df25e96e38f4530ef77506385bb9d9c72798e5b284?s=96&d=mm&r=g","caption":"anilr"},"url":"https:\/\/www.bodhost.com\/kb\/author\/anilr\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=5737"}],"version-history":[{"count":9,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5737\/revisions"}],"predecessor-version":[{"id":12072,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/5737\/revisions\/12072"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=5737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=5737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=5737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}