<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>disk usage Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/disk-usage/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 27 Sep 2019 22:39:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>du command to Check file/folder disk usage in Linux</title>
		<link>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/</link>
					<comments>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/#respond</comments>
		
		<dc:creator><![CDATA[Muhammad Nabeel]]></dc:creator>
		<pubDate>Fri, 27 Sep 2019 22:39:37 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[disk usage]]></category>
		<category><![CDATA[du command]]></category>
		<category><![CDATA[RHEL]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13976</guid>

					<description><![CDATA[<p>Linux du (Disk Usage) is a Unix/Linux command. It used to check disk usage of files and directories on Linux system. There are many options of du commands to get different outputs which we use in below examples. Check Directory Disk Usage Summary So, below command is used to get the summary of disk usage [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/">du command to Check file/folder disk usage in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Linux <strong>du</strong> (Disk Usage) is a Unix/Linux command. It used to check disk usage of files and directories on Linux system. There are many options of du commands to get different outputs which we use in below examples.</p>



<h2>Check Directory Disk Usage Summary</h2>



<p>So, below command is used to get the summary of disk usage of /boot directory. Its also unclude sub-directory summary.</p>



<pre class="wp-block-preformatted">du /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="316" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1024x316.png" alt="" class="wp-image-13978" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1024x316.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-300x93.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-768x237.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-696x215.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33-1068x330.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-45-33.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>disk usage summary of /boot directory.</figcaption></figure>



<p>If you want to see a grand total disk usage of a directory, use below command where / should be your desired directory name.</p>



<pre class="wp-block-preformatted">du -s /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="152" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1024x152.png" alt="" class="wp-image-13979" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1024x152.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-300x45.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-768x114.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-696x103.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14-1068x159.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-14.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>See only grand total space using by /boot directory.</figcaption></figure>



<h2>Check disk usage in human readable form</h2>



<p>Now we will see disk usage of /boot directory in human readable from with grand total.</p>



<pre class="wp-block-preformatted">du -hs /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="159" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1024x159.png" alt="" class="wp-image-13981" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1024x159.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-300x47.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-768x119.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-696x108.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47-1068x166.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-46-47.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Check grand total disk usage space of /boot directory in human readable form.</figcaption></figure>



<h2>Check Disk Usage of Directories with files.</h2>



<p>what if you wanna see that how much space is using by both, files and folders. to check that simply run below command</p>



<pre class="wp-block-preformatted">du -ah /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="614" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1024x614.png" alt="" class="wp-image-13982" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1024x614.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-696x418.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-1068x641.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18-700x420.png 700w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-18.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>See Disk usage with Time</h2>



<p>If you want to see total usage of a directory with it last modification time and date, then run following command</p>



<pre class="wp-block-preformatted">du -h --time /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="310" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1024x310.png" alt="" class="wp-image-13983" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1024x310.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-300x91.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-768x232.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-696x210.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41-1068x323.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-41.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>Show disk space usage in KB</h2>



<p>Simply run below command to see disk usage of a directory in kilobytes</p>



<pre class="wp-block-preformatted">du -k /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="321" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1024x321.png" alt="" class="wp-image-13984" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1024x321.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-768x241.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-696x218.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55-1068x335.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-47-55.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2>List space Usage in MB</h2>



<pre class="wp-block-preformatted">du -mh /boot</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="321" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1024x321.png" alt="" class="wp-image-13985" srcset="https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1024x321.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-300x94.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-768x241.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-696x218.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15-1068x335.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/CentOS-8-64-bit-2019-09-26-20-48-15.png 1280w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>Read manual pages using command &#8220;man du&#8221; for more information.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/">du command to Check file/folder disk usage in Linux</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/du-command-to-check-file-folder-disk-usage-in-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
