{"id":2757,"date":"2024-01-23T10:00:55","date_gmt":"2024-01-23T10:00:55","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=2757"},"modified":"2024-01-23T21:39:22","modified_gmt":"2024-01-23T21:39:22","slug":"check-disk-usage","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/","title":{"rendered":"How to Check Disk Usage in Linux\/Ubuntu?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">As a Linux System administrator, you must continuously manage your disk to keep it in an optimal state and always available. The perfect way to do that is to be aware of the available disk Usage on the Linux Machine. Fortunately, Linux has built-in commands that assist the administrator in overseeing disk usage.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This guide will show you the commands and their usage when it comes to checking and observing the Linux Disk Usage.<\/span><\/p>\n\n<h2 id=\"how-to-check-disk-usage-in-linux\"><span style=\"font-weight: 400;\">How to Check Disk Usage in Linux?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">To check the disk usage in Linux, you can utilize the built-in \u201c<strong>df<\/strong>\u201d and \u201c<strong>du<\/strong>\u201d commands, as they both come with additional options that can be used to specify the directory\/drive and also to format how the result is displayed on the terminal.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Alternatively, you can use the GUI tool \u201c<strong>Disks<\/strong>\u201d in Debian-based Linux distributions like Ubuntu. However, different variants of Linux might have different tools for checking the status of the disks.\u00a0<\/span><\/p>\n<h3 id=\"the-df-command-to-check-disk-usage\"><span style=\"font-weight: 400;\">The df Command to Check Disk Usage<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The \u201cdf\u201d command, which stands for disk free command, is used to get information about the free disk space along with the disk usage in Linux, and it doesn\u2019t require any special privileges to execute.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To use the disk free command, open a new terminal session and execute the following command:<\/span><\/p>\n<pre><b>df<\/b><\/pre>\n<p><span style=\"font-weight: 400;\">The output of the command displays the information in the form of kilobytes, as shown in the image below:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/1-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2761\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/1-3.png\" alt=\"\" width=\"973\" height=\"384\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/1-3.png 973w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/1-3-300x118.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/1-3-768x303.png 768w\" sizes=\"auto, (max-width: 973px) 100vw, 973px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">However, you can easily format the result using the \u201c<strong>-h<\/strong>\u201d option, which stands for human-readable format. To do this, execute:<\/span><\/p>\n<pre><b>df -h<\/b><\/pre>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2762\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_1-2.png\" alt=\"\" width=\"977\" height=\"299\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_1-2.png 977w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_1-2-300x92.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_1-2-768x235.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">There are a lot of different options available that can be utilized to format the output further according to a specific requirement. To view these options and to understand the syntax of the \u201c<strong>df<\/strong>\u201d command, you can view the manual of the disk-free command by executing the following command:<\/span><\/p>\n<pre><b>man df<\/b><\/pre>\n<p><span style=\"font-weight: 400;\">The manual page of the \u201c<strong>df<\/strong>\u201d command shows the following information:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_2-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2763\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_2-2.png\" alt=\"\" width=\"975\" height=\"673\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_2-2.png 975w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_2-2-300x207.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_2-2-768x530.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Some of the important and most used options contain the \u201c<strong>&#8211;o<\/strong>,\u201d which shows a detailed variant of the result containing more fields than the basic one. The output with this option is as follows:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2764\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2.png\" alt=\"\" width=\"1361\" height=\"445\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2.png 1361w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2-300x98.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2-1024x335.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_3-2-768x251.png 768w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Moreover, to get the information on all the disks and mounts available on your linux machine, you can utilize the \u201c<\/span><b>-all<\/b><span style=\"font-weight: 400;\">\u201d option:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2765\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2.png\" alt=\"\" width=\"1118\" height=\"877\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2.png 1118w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2-300x235.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2-1024x803.png 1024w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_4-2-768x602.png 768w\" sizes=\"auto, (max-width: 1118px) 100vw, 1118px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Another useful option that allows you to format the result with respect to the disk type is the \u201c<\/span><b>-T<\/b><span style=\"font-weight: 400;\">\u201d:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_5-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2766\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_5-2.png\" alt=\"\" width=\"975\" height=\"368\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_5-2.png 975w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_5-2-300x113.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_5-2-768x290.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/a><\/p>\n<h3 id=\"the-du-command-to-check-disk-usage\"><span style=\"font-weight: 400;\">The du Command to Check Disk Usage<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Another command line utility is the \u201c<strong>du<\/strong>\u201d command, which allows the user or the administrator to observe the disk usage on the terminal. However, the \u201c<strong>du<\/strong>\u201d command displays the disk usage command and shows the information for every file and folder in the Linux system or the specified directory.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To get the basic output, open a new terminal session and execute the following command:<\/span><\/p>\n<pre><span style=\"font-weight: 400;\"><strong>du<\/strong>\u00a0<\/span><\/pre>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2767\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_6.png\" alt=\"\" width=\"972\" height=\"545\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_6.png 972w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_6-300x168.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_6-768x431.png 768w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">However, knowing the information of every file and folder in your Linux machine is not that useful. Therefore, you must utilize the available options to get a better-formulated output. To know these options and the syntax of the \u201c<\/span><b>du<\/b><span style=\"font-weight: 400;\">\u201d tool, refer to the manual of \u201cdu\u201d by running the following command:<\/span><\/p>\n<pre><strong>man du<\/strong><\/pre>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2768\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_7.png\" alt=\"\" width=\"974\" height=\"672\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_7.png 974w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_7-300x207.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_7-768x530.png 768w\" sizes=\"auto, (max-width: 974px) 100vw, 974px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Just like the \u201c<\/span><b>df<\/b><span style=\"font-weight: 400;\">\u201d command, you can format the result in a human-readable form by applying the \u201c<\/span><b>-h<\/b><span style=\"font-weight: 400;\">\u201d option.<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2769\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_8.png\" alt=\"\" width=\"1008\" height=\"669\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_8.png 1008w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_8-300x199.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_8-768x510.png 768w\" sizes=\"auto, (max-width: 1008px) 100vw, 1008px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Similarly, the \u201c<strong>-a<\/strong>\u201d option can view all files and directory information. However, a more suitable option is the \u201c<strong>-hs<\/strong>,\u201d which gives the summary of the total disk usage in a one-line output and a human-readable format:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_9.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2770\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_9.png\" alt=\"\" width=\"661\" height=\"153\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_9.png 661w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_9-300x69.png 300w\" sizes=\"auto, (max-width: 661px) 100vw, 661px\" \/><\/a><\/p>\n<h3 id=\"the-disks-tool-to-check-disk-usage\"><span style=\"font-weight: 400;\">The Disks tool to Check Disk Usage<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">As mentioned above, Debian-based Linux variants (and other modern variants) come with different GUI tools that allow users easy access to different features. In Ubuntu, the tool to view disk information is called \u201c<strong>Disks<\/strong>.\u201d<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can find this tool in the applications drawer, or you can open \u201c<strong>Applications<\/strong>\u201d and search for Disks:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2771\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_10.png\" alt=\"\" width=\"801\" height=\"309\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_10.png 801w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_10-300x116.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_10-768x296.png 768w\" sizes=\"auto, (max-width: 801px) 100vw, 801px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">In the disks application, select the disk from the left-side navigation panel, and then the explore tab will display the disk information summary:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_11.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2772\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_11.png\" alt=\"\" width=\"900\" height=\"428\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_11.png 900w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_11-300x143.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_11-768x365.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/a><\/p>\n<div class=\"cl-preview-section\">\n<h2 id=\"dracula-servers-dedicated-servers-for-linux-enthusiasts\"><span id=\"dedicated-virtualization-server-with-kvm-technology\">Dedicated Virtualization Server with KVM Technology<\/span><\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Enhance your Linux experience with Dracula Servers\u2019 Dedicated Servers, offering a powerhouse of resources for those who demand top-notch performance and control. What sets Dracula Servers apart is the implementation of KVM (Kernel-based Virtual Machine) &#8211; True Emulation Virtualization Technology. This cutting-edge technology ensures a secure, isolated, and efficient virtualization environment for your Linux projects. With KVM, you get true hardware-level virtualization, allowing you to run a wide range of Linux distributions without compromise. Dive into the world of dedicated servers backed by KVM technology and experience unparalleled flexibility and reliability for your Linux endeavors.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Explore the benefits of Dracula Servers\u2019 Dedicated Servers for Linux at\u00a0<a href=\"https:\/\/draculaservers.com\/kvm-vps\">Dracula Servers KVM VPS<\/a>.<\/p>\n<\/div>\n<h2 id=\"how-to-use-the-ls-command-to-check-disk-usage-of-files-and-folders\"><span style=\"font-weight: 400;\">How to use the \u201cls\u201d Command to Check Disk Usage of Files and folders?<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If you want to find the disk usage of the size of files and folders inside the particular directory, then instead of using the \u201c<strong>df<\/strong>\u201d or the \u201c<strong>du<\/strong>\u201d command, you can utilize the \u201c<strong>ls<\/strong>\u201d command. However, you will have to use the \u201c<strong>-al<\/strong>\u201d option that will list all of the files and folders along with their size. Lastly, you can also include the \u201c<strong>h<\/strong>\u201d option to format the output in the human-readable format.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To do this, first head inside the directory by using the \u201c<strong>cd<\/strong>\u201d command, and then execute the command:<\/span><\/p>\n<pre><b>ls -alh<\/b><\/pre>\n<p><span style=\"font-weight: 400;\">The terminal will show the results in the following manner:<\/span><\/p>\n<p><a href=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_12.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2773\" src=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_12.png\" alt=\"\" width=\"975\" height=\"500\" srcset=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_12.png 975w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_12-300x154.png 300w, https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/Screenshot_12-768x394.png 768w\" sizes=\"auto, (max-width: 975px) 100vw, 975px\" \/><\/a><\/p>\n<h2 id=\"wrap-up\">Wrap Up<\/h2>\n<p>If you are looking for a quick and easy way to check the Disk Usage in Linux, then you can use the &#8220;<strong>df<\/strong>&#8221; and the &#8220;<strong>du<\/strong>&#8221; command-line utilities. Both of these command line tools come with various options that help you fine-tune your output according to your needs. Moreover, you can easily convert the result that is displayed into a more human-readable format by adding the option &#8220;<strong>-h<\/strong>.&#8221;<\/p>\n<p>Apart from these, in modern Linux Variants, GUI tools (Like Disks in <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">Ubuntu<\/a>) can help you get a summary of disk usage. To utilize this, you will have to open up the applications tray and open the Diks tool. After that, select the disk whose information you want to fetch.<\/p>\n<h2 id=\"faqs\"><span style=\"font-weight: 400;\">FAQs<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Here are some of the most frequently asked questions related to checking the Disk Usage in Linux and Ubuntu.<\/span><\/p>\n<p><strong>Q: How do I check the available disk space in Linux using the command line?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: To inspect disk space in Linux, simply open a terminal and type the command &#8220;df&#8221; to see detailed information about the disk usage for each file system on your machine.<\/span><\/p>\n<p><strong>Q: What&#8217;s a straightforward way to view the available disk space in Linux?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: Use the &#8220;df&#8221; command with the &#8220;-h&#8221; flag to view free disk space in a human-readable format.<\/span><\/p>\n<p><strong>Q: How can I check the unused disk space in Linux?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: To determine unused disk space in Linux, use the &#8220;df&#8221; command with the &#8220;-a&#8221; option. This will reveal available space for every file system, even if fully occupied.<\/span><\/p>\n<p><strong>Q: Is it possible to check disk space on a remote Linux server?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: Yes, you can check disk space on a remote Linux server by using the &#8220;df&#8221; command. SSH into the remote server and run the &#8220;df&#8221; command as you would on a local machine.<\/span><\/p>\n<p><strong>Q: How can I determine storage utilization for a specific directory in Linux?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: To examine the storage consumption of a specific directory in Linux, use the &#8220;du&#8221; command followed by the directory\u2019s path. For example, to check storage used by the \/home directory, execute &#8220;du \/home.&#8221;<\/span><\/p>\n<p><strong>Q: Is it possible to determine storage utilization for an individual file in Linux?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: Yes, in Linux, you can assess the storage usage of a particular file using the &#8220;du&#8221; command with the file\u2019s path. However, note that the primary function of &#8220;du&#8221; is to evaluate the storage consumption of directories.<\/span><\/p>\n<p><strong>Q: How can disk space utilization be presented in a user-friendly format?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: Utilize the &#8220;df&#8221; command with the &#8220;-h&#8221; option to display disk space in an easily understandable format, showing sizes in MB or GB instead of standard 1K blocks.<\/span><\/p>\n<p><strong>Q: How do the &#8220;df&#8221; and &#8220;du&#8221; commands in Linux differ when examining disk space?<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">A: The &#8220;df&#8221; command provides an overview of disk space utilization on entire file systems, while &#8220;du&#8221; focuses on space occupied by individual files or directories. In essence, &#8220;df&#8221; offers a system-level view, whereas &#8220;du&#8221; allows a detailed exploration of specific directories or files.<\/span><\/p>\n<p>Check out More Linux Tutorials <a href=\"https:\/\/draculaservers.com\/tutorials\/\" target=\"_blank\" rel=\"noopener\">Here!<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a Linux System administrator, you must continuously manage your disk to keep it in an optimal state and always available. The perfect way to do that is to be aware of the available disk Usage on the Linux Machine. Fortunately, Linux has built-in commands that assist the administrator in overseeing disk usage. This guide [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":2776,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[172,22],"tags":[192,193,180,191,181],"class_list":["post-2757","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-tutorials","category-ubuntu","tag-check-disk-usage-in-ubuntu","tag-disk-management-in-linux","tag-linux-guide","tag-linux-system-admin","tag-ubuntu-guide"],"blocksy_meta":[],"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png",1280,720,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-300x169.png",300,169,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-768x432.png",768,432,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-1024x576.png",1024,576,true],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png",1280,720,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png",1280,720,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>As a Linux System administrator, you must continuously manage your disk to keep it in an optimal state and always available. The perfect way to do that is to be aware of the available disk Usage on the Linux Machine. Fortunately, Linux has built-in commands that assist the administrator in overseeing disk usage. This guide will show you the commands and their usage when it comes to checking and observing the Linux Disk Usage. How to Check Disk Usage in Linux? To check the disk usage in Linux, you can utilize the built-in \u201cdf\u201d and \u201cdu\u201d commands, as they both&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/linux-tutorials\/\" rel=\"category tag\">Linux Tutorials<\/a>, <a href=\"https:\/\/draculaservers.com\/tutorials\/category\/ubuntu\/\" rel=\"category tag\">Ubuntu<\/a>","author_info_v2":{"name":"Abdul Mannan","url":"https:\/\/draculaservers.com\/tutorials\/author\/abdul-mannan-tbgmail-com\/"},"comments_num_v2":"0 comments","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Check Disk Usage in Linux\/Ubuntu? - Dracula Servers Tutorials<\/title>\n<meta name=\"description\" content=\"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the &quot;-h&quot; option to make it human readable.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check Disk Usage in Linux\/Ubuntu? - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the &quot;-h&quot; option to make it human readable.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-23T10:00:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-23T21:39:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abdul Mannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abdul Mannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/\"},\"author\":{\"name\":\"Abdul Mannan\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\"},\"headline\":\"How to Check Disk Usage in Linux\\\/Ubuntu?\",\"datePublished\":\"2024-01-23T10:00:55+00:00\",\"dateModified\":\"2024-01-23T21:39:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/\"},\"wordCount\":1406,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/What-9.png\",\"keywords\":[\"Check Disk Usage in Ubuntu\",\"Disk Management in Linux\",\"Linux Guide\",\"Linux System Admin\",\"Ubuntu Guide\"],\"articleSection\":[\"Linux Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/\",\"name\":\"How to Check Disk Usage in Linux\\\/Ubuntu? - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/What-9.png\",\"datePublished\":\"2024-01-23T10:00:55+00:00\",\"dateModified\":\"2024-01-23T21:39:22+00:00\",\"description\":\"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the \\\"-h\\\" option to make it human readable.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/What-9.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/What-9.png\",\"width\":1280,\"height\":720,\"caption\":\"How to Check Disk Usage in Linux\\\/ Ubuntu?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/check-disk-usage\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Check Disk Usage in Linux\\\/Ubuntu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\",\"name\":\"Abdul Mannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"caption\":\"Abdul Mannan\"},\"description\":\"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check Disk Usage in Linux\/Ubuntu? - Dracula Servers Tutorials","description":"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the \"-h\" option to make it human readable.","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:\/\/draculaservers.com\/tutorials\/check-disk-usage\/","og_locale":"en_US","og_type":"article","og_title":"How to Check Disk Usage in Linux\/Ubuntu? - Dracula Servers Tutorials","og_description":"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the \"-h\" option to make it human readable.","og_url":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2024-01-23T10:00:55+00:00","article_modified_time":"2024-01-23T21:39:22+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png","type":"image\/png"}],"author":"Abdul Mannan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abdul Mannan","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/"},"author":{"name":"Abdul Mannan","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6"},"headline":"How to Check Disk Usage in Linux\/Ubuntu?","datePublished":"2024-01-23T10:00:55+00:00","dateModified":"2024-01-23T21:39:22+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/"},"wordCount":1406,"commentCount":0,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png","keywords":["Check Disk Usage in Ubuntu","Disk Management in Linux","Linux Guide","Linux System Admin","Ubuntu Guide"],"articleSection":["Linux Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/","url":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/","name":"How to Check Disk Usage in Linux\/Ubuntu? - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png","datePublished":"2024-01-23T10:00:55+00:00","dateModified":"2024-01-23T21:39:22+00:00","description":"To Check Disk Usage in Linux, use the du and the df command line utility. Moreover, you can use the \"-h\" option to make it human readable.","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/01\/What-9.png","width":1280,"height":720,"caption":"How to Check Disk Usage in Linux\/ Ubuntu?"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/check-disk-usage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Check Disk Usage in Linux\/Ubuntu?"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6","name":"Abdul Mannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","caption":"Abdul Mannan"},"description":"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot."}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2757","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=2757"}],"version-history":[{"count":6,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2757\/revisions"}],"predecessor-version":[{"id":2778,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/2757\/revisions\/2778"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/2776"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=2757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=2757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=2757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}