<?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>Oracle Database Tips blog &#187; find large file</title>
	<atom:link href="http://oracle-database-tips.com/wp/tag/find-large-file/feed" rel="self" type="application/rss+xml" />
	<link>http://oracle-database-tips.com/wp</link>
	<description>News for Oracle professionals</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:37:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Solaris: How to Find Large Files and Directories</title>
		<link>http://oracle-database-tips.com/wp/oracle-scripts/solaris-how-to-find-large-files-and-directories</link>
		<comments>http://oracle-database-tips.com/wp/oracle-scripts/solaris-how-to-find-large-files-and-directories#comments</comments>
		<pubDate>Sun, 13 Sep 2009 08:51:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Oracle Scripts]]></category>
		<category><![CDATA[byte blocks]]></category>
		<category><![CDATA[directory usage]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[find large file]]></category>
		<category><![CDATA[ko]]></category>
		<category><![CDATA[kod]]></category>
		<category><![CDATA[mbytes]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris os]]></category>
		<category><![CDATA[sourced]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[system boundaries]]></category>
		<category><![CDATA[wikis]]></category>

		<guid isPermaLink="false">http://oracle-database-tips.com/wp/?p=57</guid>
		<description><![CDATA[Finding Large Directories and files on SunOs
]]></description>
			<content:encoded><![CDATA[<h5>Finding Large Directories</h5>
<p>To find large directories, use the <strong>du</strong> command and sort the output.</p>
<p>For example, to output the 10 largest directories in <strong>/var</strong>, sorted in ascending size order, use the following command:</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">du -ko /<span class="code-keyword">var</span>|sort -n | tail -10</pre>
</div>
</div>
<p>To avoid crossing file system boundaries, that is, to see the directory usage in <strong>/</strong> but not in the other mounted files systems (<strong>/var</strong>, <strong>/opt</strong>, and so on), add the <strong>d</strong> option to the <strong>du</strong> command:</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">du -kod /<span class="code-keyword">var</span>|sort -n | tail -10</pre>
</div>
</div>
<h5><a name="FindingLargeFilesandDirectoriesintheSolarisOS-FindingLargeFiles"></a>Finding Large Files</h5>
<p>To find large files, use the <strong>find</strong> command and sort the output.</p>
<p>Example 1: To find all plain files (not block, character, symbolic links, and so on) in a file system larger than 200,000 512-byte blocks (approximately 100 Mbytes) and sort on field 7 (file size) while numerically ignoring leading blanks, do this:</p>
<div class="code panel" style="border-width: 1px;">
<div class="codeContent panelContent">
<pre class="code-java">find / -size +200000 -type f -ls | sort -k 7,7 -n

Sourced from: http://wikis.sun.com/display/BigAdmin/Finding+Large+Files+and+Directories+in+the+Solaris+OS</pre>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://oracle-database-tips.com/wp/oracle-scripts/solaris-how-to-find-large-files-and-directories/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

