{"id":21331,"date":"2025-11-18T13:07:49","date_gmt":"2025-11-18T13:07:49","guid":{"rendered":"https:\/\/www.webhosting.uk.com\/kb\/?p=21331"},"modified":"2026-06-03T08:58:09","modified_gmt":"2026-06-03T08:58:09","slug":"how-to-monitor-disk-usage-with-the-du-and-df-commands","status":"publish","type":"post","link":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/","title":{"rendered":"How to Monitor Disk Usage with the du and df Commands"},"content":{"rendered":"<p>Monitoring disk usage is important for maintaining the performance, stability and security of any Linux server. Whether you manage a VPS, dedicated server, or local machine, the du and df commands help you understand how storage is being used and prevent issues such as low disk space or unexpected interruptions.<\/p>\n<p>This guide explains how to use both commands, what their output means, and practical examples for real-world server management.<\/p>\n<div class=\"more-tab-content\">\n<h2><strong>Table of Contents<\/strong><\/h2>\n<ol>\n<li><a href=\"#introduction\">Introduction<\/a><\/li>\n<li><a href=\"#commands\">What Are the du and df Commands?<\/a><\/li>\n<li><a href=\"#free\">How to Use df (Disk Free)<\/a><\/li>\n<li><a href=\"#usage\">How to Use du (Disk Usage)<\/a><\/li>\n<li><a href=\"#examples\">Practical Examples<\/a><a name=\"introduction\"><\/a><\/li>\n<li><a href=\"#monitoring\">Tips for Monitoring Disk Usage<\/a><\/li>\n<li><a href=\"#conclusion\">Conclusion<\/a><\/li>\n<\/ol>\n<\/div>\n<h3><strong>Introduction<\/strong><\/h3>\n<p>Disk monitoring helps you avoid full storage issues that can crash applications, prevent database writes, <a name=\"commands\"><\/a>or stop services from running. Linux provides two powerful built-in utilities, \u2018df\u2019 and \u2018du\u2019, to gather accurate information about disk usage.<\/p>\n<h3><strong>What are the du and df Commands?<\/strong><\/h3>\n<p><strong>df (Disk Free)<\/strong><\/p>\n<p>Displays the available and used disk space across all mounted file systems.<\/p>\n<p><strong>du (Disk Usage)<\/strong><\/p>\n<p>Shows disk space<a name=\"free\"><\/a> used by files and directories.<\/p>\n<p>These commands complement each other; df gives a system-wide view, while du helps identify which directories consume the most space.<\/p>\n<h3><strong>How to Use the df (Disk Free) Command?<\/strong><\/h3>\n<ol>\n<li>Check Overall Disk Usage<br \/>\nRun the following command:<\/p>\n<pre>df<\/pre>\n<p>This displays all mounted file systems along with their total size, used space, available space, and usage percentage. It provides a quick system-wide overview to help you identify if any partition is running low on space.<\/li>\n<li>View Disk Usage in Human-Readable Format<br \/>\nRun:<\/p>\n<pre>df -h<\/pre>\n<p>The -h option converts the output into a human-readable format, showing sizes in MB, GB, or TB, making it easier to understand.<\/p>\n<p>Example Output:<\/p>\n<pre>Filesystem\u00a0\u00a0 Size\u00a0 Used Avail Use% Mounted on\r\n\/dev\/sda1\u00a0\u00a0\u00a0\u00a0 50G\u00a0\u00a0 23G\u00a0\u00a0 25G\u00a0 48% \/<\/pre>\n<p>This helps you quickly assess disk usage on each mounted partition.<\/li>\n<li>Check Inode Usage<br \/>\nRun:<\/p>\n<pre>df -i<\/pre>\n<p>Inodes track files and directories. Even if <a name=\"usage\"><\/a>disk space is available, a server can stop working if it runs out of inodes. This command helps identify inode shortages before they cause service issues.<\/li>\n<\/ol>\n<h3><strong>How to Use the du (Disk Usage) Command?<\/strong><\/h3>\n<ol>\n<li>Check the Size of a Specific Directory<br \/>\nRun:<\/p>\n<pre>du -sh \/path\/to\/directory<\/pre>\n<ul>\n<li>-s: Shows summary information only<\/li>\n<li>-h: Displays output in human-readable format<br \/>\nThis helps you quickly see how much space a specific folder consumes.<\/li>\n<\/ul>\n<\/li>\n<li>Show Total Disk Usage of the Current Directory<br \/>\nNavigate into the directory and run:<\/p>\n<pre>du -sh<\/pre>\n<p>This displays the total size of everything contained in the current directory, useful for quick space checks.<\/li>\n<li>List Disk Usage of All Subdirectories<br \/>\nRun:<\/p>\n<pre>du -h \/path\/to\/directory<\/pre>\n<p>This shows the size of every file and subfolder, helping you identify which areas consume storage.<\/li>\n<li>Sort Directory Sizes to Find the Largest Ones<br \/>\nUse:<\/p>\n<pre>du -h \/path\/to\/directory | sort -hr | head -20<\/pre>\n<p>This command <a name=\"examples\"><\/a>sorts directory sizes in descending order and displays the top 20 largest. It is especially helpful when cleaning up a server that\u2019s running out of space.<\/li>\n<\/ol>\n<h3><strong>Practical Examples<\/strong><\/h3>\n<ol>\n<li>Find the Largest Directories on the Server\n<pre>du -ah \/ | sort -rh | head -20<\/pre>\n<\/li>\n<li>Check Disk Usage of the \/var Directory\n<pre>du -sh \/var\/*<\/pre>\n<\/li>\n<li>Check <a name=\"monitoring\"><\/a>Home Directory Space Usage\n<pre>du -sh \/home\/*<\/pre>\n<\/li>\n<\/ol>\n<h3><strong>Tips for Monitoring Disk Usage<\/strong><\/h3>\n<ul>\n<li>Use df -h regularly to prevent storage from filling up.<\/li>\n<li>Use du when you need to find which folder is consuming space.<\/li>\n<li>Automate checks with cron to get alerts when disk usage crosses a threshold.<\/li>\n<li>Clean unnecessary <a name=\"conclusion\"><\/a>logs in \/var\/log\/ to free space.<\/li>\n<li>Use tools like <strong>ncdu<\/strong> for interactive disk usage analysis.<\/li>\n<\/ul>\n<h3><strong>Conclusion<\/strong><\/h3>\n<p>The df and du commands are essential tools for monitoring disk usage on Linux servers. While df gives an overview of total disk space, du helps identify which files and directories consume the most storage. Using these commands together guarantees better resource management and helps maintain server performance and reliability.<\/p>\n<div style=\"background: #E6F0FF; padding: 15px; border-left: 4px solid #0047BA; margin: 20px 0;\"><strong>Need more storage visibility and performance?<\/strong><br \/>\nOur <a href=\"https:\/\/www.webhosting.uk.com\/linux-vps\">Linux VPS Hosting plans<\/a> provide dedicated resources and full control for managing applications, files and server capacity.<\/div>\n<p style=\"text-align: center;\"><em><strong>Want to manage email storage as well? Learn <a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-manage-email-disk-usage-in-cpanel\/\"> How to manage email disk usage in cPanel<\/a><\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Monitoring disk usage is important for maintaining the performance, stability and security of any Linux server. Whether you manage a VPS, dedicated server, or local machine, the du and df&hellip;<\/p>\n<p><a href=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/\" class=\"more-link\">Read More<\/a><\/p>\n<div class='heateorSssClear'><\/div><div  class='heateor_sss_sharing_container heateor_sss_horizontal_sharing' data-heateor-sss-href='https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/'><div class='heateor_sss_sharing_title' style=\"font-weight:bold\" >Spread the love<\/div><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-monitor-disk-usage-with-the-du-and-df-commands%2F\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=Monitor%20Disk%20Usage%20in%20Linux%20with%20du%20and%20df%20-%20WHUK&url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-monitor-disk-usage-with-the-du-and-df-commands%2F\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.webhosting.uk.com%2Fkb%2Fhow-to-monitor-disk-usage-with-the-du-and-df-commands%2F\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:40px;height:40px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div><div class='heateorSssClear'><\/div>","protected":false},"author":28,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1886],"tags":[1408],"class_list":["post-21331","post","type-post","status-publish","format-standard","hentry","category-command-line","tag-command-line"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.9 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Monitor Disk Usage in Linux with du and df - WHUK<\/title>\n<meta name=\"description\" content=\"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance\" \/>\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.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Monitor Disk Usage in Linux with du and df - WHUK\" \/>\n<meta property=\"og:description\" content=\"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"Webhosting UK Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webhostingukcom\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-18T13:07:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T08:58:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Victor G\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Monitor Disk Usage in Linux with du and df - WHUK\" \/>\n<meta name=\"twitter:description\" content=\"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance\" \/>\n<meta name=\"twitter:creator\" content=\"@WebhostingUKcom\" \/>\n<meta name=\"twitter:site\" content=\"@WebhostingUKcom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/\"},\"author\":{\"name\":\"Victor G\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\"},\"headline\":\"How to Monitor Disk Usage with the du and df Commands\",\"datePublished\":\"2025-11-18T13:07:49+00:00\",\"dateModified\":\"2026-06-03T08:58:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/\"},\"wordCount\":632,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"keywords\":[\"command line\"],\"articleSection\":[\"Command Line\"],\"inLanguage\":\"en-GB\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/\",\"name\":\"Monitor Disk Usage in Linux with du and df - WHUK\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-11-18T13:07:49+00:00\",\"dateModified\":\"2026-06-03T08:58:09+00:00\",\"description\":\"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/how-to-monitor-disk-usage-with-the-du-and-df-commands\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Monitor Disk Usage with the du and df Commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"name\":\"Webhosting UK Knowledge Base\",\"description\":\"Expert Insights on Hosting, Development, Security, Marketing, and SEO\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\"},\"alternateName\":\"WHUK\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#organization\",\"name\":\"Webhosting UK\",\"alternateName\":\"WHUK\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"contentUrl\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/wp-content\\\/uploads\\\/2023\\\/08\\\/WHUK-logo-1.png\",\"width\":1200,\"height\":628,\"caption\":\"Webhosting UK\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/webhostingukcom\",\"https:\\\/\\\/x.com\\\/WebhostingUKcom\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/webhostinguk\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/webhosting-uk-com-ltd\\\/\",\"https:\\\/\\\/www.instagram.com\\\/webhosting_uk\\\/\",\"https:\\\/\\\/www.tiktok.com\\\/@webhostinguk\"],\"description\":\"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.\",\"email\":\"sales@webhosting.uk.com\",\"telephone\":\"0800 862 0890\",\"legalName\":\"Webhosting UK\",\"foundingDate\":\"2001-02-07\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"51\",\"maxValue\":\"200\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhosting.uk.com\\\/kb\\\/#\\\/schema\\\/person\\\/ea067684eae84c2b8b49a81c69407297\",\"name\":\"Victor G\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g\",\"caption\":\"Victor G\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Monitor Disk Usage in Linux with du and df - WHUK","description":"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance","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.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/","og_locale":"en_GB","og_type":"article","og_title":"Monitor Disk Usage in Linux with du and df - WHUK","og_description":"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance","og_url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/","og_site_name":"Webhosting UK Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/webhostingukcom","article_published_time":"2025-11-18T13:07:49+00:00","article_modified_time":"2026-06-03T08:58:09+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","type":"image\/png"}],"author":"Victor G","twitter_card":"summary_large_image","twitter_title":"Monitor Disk Usage in Linux with du and df - WHUK","twitter_description":"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance","twitter_creator":"@WebhostingUKcom","twitter_site":"@WebhostingUKcom","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/#article","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/"},"author":{"name":"Victor G","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297"},"headline":"How to Monitor Disk Usage with the du and df Commands","datePublished":"2025-11-18T13:07:49+00:00","dateModified":"2026-06-03T08:58:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/"},"wordCount":632,"publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"keywords":["command line"],"articleSection":["Command Line"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/","url":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/","name":"Monitor Disk Usage in Linux with du and df - WHUK","isPartOf":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#website"},"datePublished":"2025-11-18T13:07:49+00:00","dateModified":"2026-06-03T08:58:09+00:00","description":"Learn how to monitor disk usage on Linux using du and df commands to track storage, manage space efficiently and maintain system performance","breadcrumb":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhosting.uk.com\/kb\/how-to-monitor-disk-usage-with-the-du-and-df-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhosting.uk.com\/kb\/"},{"@type":"ListItem","position":2,"name":"How to Monitor Disk Usage with the du and df Commands"}]},{"@type":"WebSite","@id":"https:\/\/www.webhosting.uk.com\/kb\/#website","url":"https:\/\/www.webhosting.uk.com\/kb\/","name":"Webhosting UK Knowledge Base","description":"Expert Insights on Hosting, Development, Security, Marketing, and SEO","publisher":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization"},"alternateName":"WHUK","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhosting.uk.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/www.webhosting.uk.com\/kb\/#organization","name":"Webhosting UK","alternateName":"WHUK","url":"https:\/\/www.webhosting.uk.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","contentUrl":"https:\/\/www.webhosting.uk.com\/kb\/wp-content\/uploads\/2023\/08\/WHUK-logo-1.png","width":1200,"height":628,"caption":"Webhosting UK"},"image":{"@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webhostingukcom","https:\/\/x.com\/WebhostingUKcom","https:\/\/www.youtube.com\/c\/webhostinguk","https:\/\/www.linkedin.com\/company\/webhosting-uk-com-ltd\/","https:\/\/www.instagram.com\/webhosting_uk\/","https:\/\/www.tiktok.com\/@webhostinguk"],"description":"Fast, reliable, and cost-effective website hosting services with Webhosting UK. Committed to providing you secure support around the clock.","email":"sales@webhosting.uk.com","telephone":"0800 862 0890","legalName":"Webhosting UK","foundingDate":"2001-02-07","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"51","maxValue":"200"}},{"@type":"Person","@id":"https:\/\/www.webhosting.uk.com\/kb\/#\/schema\/person\/ea067684eae84c2b8b49a81c69407297","name":"Victor G","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9bf0713adcbaded4878508c93d93927ecbfa4f74548fd9bcee41478d8768bd66?s=96&d=mm&r=g","caption":"Victor G"}}]}},"_links":{"self":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/comments?post=21331"}],"version-history":[{"count":6,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21331\/revisions"}],"predecessor-version":[{"id":22715,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/posts\/21331\/revisions\/22715"}],"wp:attachment":[{"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/media?parent=21331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/categories?post=21331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhosting.uk.com\/kb\/wp-json\/wp\/v2\/tags?post=21331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}