{"id":2848,"date":"2017-09-04T11:13:04","date_gmt":"2017-09-04T06:13:04","guid":{"rendered":"https:\/\/ahmadawais.com\/?p=2848"},"modified":"2017-09-04T11:13:04","modified_gmt":"2017-09-04T06:13:04","slug":"ubuntu-find-amount-free-space-hard-drive-command-line","status":"publish","type":"post","link":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/","title":{"rendered":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?"},"content":{"rendered":"<p>This is a quick-tip for Ubuntu users who&#8217;d like to find the amount of free space on their hard disk via command line.<\/p>\n<p>Figured\u00a0I&#8217;d post a quick-tip while enjoying the vacations and all. Since I am a command line power user, I like to do a lot through it. Having built a lot of CLIs and workflow automation \u2014 I can only tell you how happy it makes me being able to hack it through Command line.<\/p>\n<h2 id=\"space-usage-on-ubuntu\">Space Usage on Ubuntu<a href=\"#space-usage-on-ubuntu\" class=\"heading-link\">#<\/a><\/h2>\n<p>So, let&#8217;s get to it. \u00a0If like me all you need is the total of disk space used then just use the following command.<\/p>\n<\/section>\n<div class=\"postcontents full dark\">\n<div class=\"wrapper\">\n<code>df -h --total<br \/>\n<\/code>\n<\/div>\n<\/div>\n<section class=\"postcontents wrapper\">\n<p>\u26a1\ufe0f Complimentary GIF \u2014 As they say, GIF or didn&#8217;t happen.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.stack.imgur.com\/VHWg7.gif\" alt=\"total disk space\" \/><\/p>\n<p>Here&#8217;s a sample output with the total shown at the end<\/p>\n<\/section>\n<div class=\"postcontents full dark\">\n<div class=\"wrapper\">\n<pre><code>Filesystem      Size  Used Avail Use% Mounted on\r\nudev            478M     0  478M   0% \/dev\r\ntmpfs           100M  4.5M   95M   5% \/run\r\n\/dev\/vda1        20G  3.3G   16G  18% \/\r\ntmpfs           497M     0  497M   0% \/dev\/shm\r\ntmpfs           5.0M     0  5.0M   0% \/run\/lock\r\ntmpfs           497M     0  497M   0% \/sys\/fs\/cgroup\r\ntmpfs           100M     0  100M   0% \/run\/user\/0\r\ntotal            22G  3.3G   17G  17% -\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<section class=\"postcontents wrapper\">\n<p>Happy hacking \u2014 Cheers!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is\u00a0a quick-tip for Ubuntu users who&#8217;d like to find the amount of free space on their hard disk via command line.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[141],"tags":[161],"class_list":["post-2848","post","type-post","status-publish","format-standard","hentry","category-devops","tag-ubuntu"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How Do I Find the Amount of Free Space on My Hard Drive with Command Line?<\/title>\n<meta name=\"description\" content=\"This is\u00a0a quick-tip for Ubuntu users who&#039;d like to find the amount of free space on their hard disk via command line.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?\" \/>\n<meta property=\"og:description\" content=\"This is\u00a0a quick-tip for Ubuntu users who&#039;d like to find the amount of free space on their hard disk via command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/\" \/>\n<meta property=\"og:site_name\" content=\"Ahmad Awais\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/AhmadAwais\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-04T06:13:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i.stack.imgur.com\/VHWg7.gif\" \/>\n<meta name=\"author\" content=\"Ahmad Awais\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:site\" content=\"@MrAhmadAwais\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ahmad Awais\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/\"},\"author\":{\"name\":\"Ahmad Awais\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"headline\":\"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?\",\"datePublished\":\"2017-09-04T06:13:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/\"},\"wordCount\":157,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i.stack.imgur.com\\\/VHWg7.gif\",\"keywords\":[\"ubuntu\"],\"articleSection\":[\"DevOps\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/\",\"name\":\"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i.stack.imgur.com\\\/VHWg7.gif\",\"datePublished\":\"2017-09-04T06:13:04+00:00\",\"description\":\"This is\u00a0a quick-tip for Ubuntu users who'd like to find the amount of free space on their hard disk via command line.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i.stack.imgur.com\\\/VHWg7.gif\",\"contentUrl\":\"https:\\\/\\\/i.stack.imgur.com\\\/VHWg7.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/ubuntu-find-amount-free-space-hard-drive-command-line\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ahmadawais.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#website\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/\",\"name\":\"Ahmad Awais\",\"description\":\"Founder &amp; CEO of CommandCode.ai f\\\/k\\\/a Langbase | Google Developers Advisory Board (gDAB) founding member\",\"publisher\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ahmadawais.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/#\\\/schema\\\/person\\\/1d1b9504182dca2315cf039fb4ebb85b\",\"name\":\"Ahmad Awais\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"url\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"contentUrl\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\",\"width\":2299,\"height\":1705,\"caption\":\"Ahmad Awais\"},\"logo\":{\"@id\":\"https:\\\/\\\/ahmadawais.com\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/Ahmad-Awais-face.jpg\"},\"description\":\"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \\\"Awais is an awesome example for developers\\\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\\\/ML\\\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\\\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.\",\"sameAs\":[\"https:\\\/\\\/AhmadAwais.com\\\/\",\"https:\\\/\\\/facebook.com\\\/AhmadAwais\",\"https:\\\/\\\/instagram.com\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/MrAhmadAwais\\\/\",\"https:\\\/\\\/x.com\\\/MrAhmadAwais\",\"https:\\\/\\\/youtube.com\\\/AhmadAwais\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?","description":"This is\u00a0a quick-tip for Ubuntu users who'd like to find the amount of free space on their hard disk via command line.","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:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/","og_locale":"en_US","og_type":"article","og_title":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?","og_description":"This is\u00a0a quick-tip for Ubuntu users who'd like to find the amount of free space on their hard disk via command line.","og_url":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/","og_site_name":"Ahmad Awais","article_publisher":"https:\/\/facebook.com\/AhmadAwais","article_author":"https:\/\/facebook.com\/AhmadAwais","article_published_time":"2017-09-04T06:13:04+00:00","og_image":[{"url":"https:\/\/i.stack.imgur.com\/VHWg7.gif","type":"","width":"","height":""}],"author":"Ahmad Awais","twitter_card":"summary_large_image","twitter_creator":"@MrAhmadAwais","twitter_site":"@MrAhmadAwais","twitter_misc":{"Written by":"Ahmad Awais","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#article","isPartOf":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/"},"author":{"name":"Ahmad Awais","@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"headline":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?","datePublished":"2017-09-04T06:13:04+00:00","mainEntityOfPage":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/"},"wordCount":157,"commentCount":4,"publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"image":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/i.stack.imgur.com\/VHWg7.gif","keywords":["ubuntu"],"articleSection":["DevOps"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/","url":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/","name":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?","isPartOf":{"@id":"https:\/\/ahmadawais.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#primaryimage"},"image":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#primaryimage"},"thumbnailUrl":"https:\/\/i.stack.imgur.com\/VHWg7.gif","datePublished":"2017-09-04T06:13:04+00:00","description":"This is\u00a0a quick-tip for Ubuntu users who'd like to find the amount of free space on their hard disk via command line.","breadcrumb":{"@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#primaryimage","url":"https:\/\/i.stack.imgur.com\/VHWg7.gif","contentUrl":"https:\/\/i.stack.imgur.com\/VHWg7.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/ahmadawais.com\/ubuntu-find-amount-free-space-hard-drive-command-line\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ahmadawais.com\/"},{"@type":"ListItem","position":2,"name":"How Do I Find the Amount of Free Space on My Hard Drive with Command Line?"}]},{"@type":"WebSite","@id":"https:\/\/ahmadawais.com\/#website","url":"https:\/\/ahmadawais.com\/","name":"Ahmad Awais","description":"Founder &amp; CEO of CommandCode.ai f\/k\/a Langbase | Google Developers Advisory Board (gDAB) founding member","publisher":{"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ahmadawais.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ahmadawais.com\/#\/schema\/person\/1d1b9504182dca2315cf039fb4ebb85b","name":"Ahmad Awais","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","url":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","contentUrl":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg","width":2299,"height":1705,"caption":"Ahmad Awais"},"logo":{"@id":"https:\/\/ahmadawais.com\/wp-content\/uploads\/2020\/06\/Ahmad-Awais-face.jpg"},"description":"Founder & CEO of \u2318 Command Code coding agent with taste. Founded Langbase.com, AI cloud to build, deploy, and scale AI agents with tools & memory \u00b7 Creator of Command.new. \"Awais is an awesome example for developers\" \u2014 Satya Nadella, CEO of Microsoft. NASA Mars Ingenuity Helicopter mission code contributor 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer). Google Developers Expert Web DevRel. Ex VP Eng (DevTools & DevRel) Rapid \u00b7 Google Developers Advisory Board (gDAB) founding member \u00b7 AI\/ML\/DevTools Angel Investor (Replit, Resend, Daytona, Gumroad and you?) \u276f AI\/ML Advisory Board San Francisco, DevNetwork. Award-winning Open Source Engineering leader authored hundreds of open-source dev-tools and software libraries used by millions of developers, including Shades of Purple code theme and corona-cli. Linux Foundation (Node.js Committee Lead), OpenAPI Business Governing Board. Taught 108K+ developers via NodeCLI.com and VSCode.pro course. 274 million views, blogging for 24 yrs. \u276f Read more about Ahmad Awais or come say hi on \ud835\udd4f @MrAhmadAwais.","sameAs":["https:\/\/AhmadAwais.com\/","https:\/\/facebook.com\/AhmadAwais","https:\/\/instagram.com\/MrAhmadAwais\/","https:\/\/www.linkedin.com\/in\/MrAhmadAwais\/","https:\/\/x.com\/MrAhmadAwais","https:\/\/youtube.com\/AhmadAwais"]}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/2848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/comments?post=2848"}],"version-history":[{"count":0,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/posts\/2848\/revisions"}],"wp:attachment":[{"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/media?parent=2848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/categories?post=2848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahmadawais.com\/api\/wp\/v2\/tags?post=2848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}