<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: finding out large file and directory in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058646#M305665</link>
    <description>Hi (again) Sekar:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; lets think like i have to find large files in / while excluding /bin/ , /stand and /sbin&lt;BR /&gt;&lt;BR /&gt;First, if you are gonig to start with '/' you probably want to add the '-xdev' switch so that you do *not* visit mountpoints:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ...&lt;BR /&gt;&lt;BR /&gt;Since '/bin' is a symbolic link to '/usr' this will eliminate visiting that directory.  As for skipping '/stand' and '/sbin' do:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ! -path "/sbin/*" -a ! -path "/stand/*"&lt;BR /&gt;&lt;BR /&gt;THUS, in all:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ! -path "/sbin/*" -a ! -path "/stand/*"&lt;BR /&gt;-exec ls -l {} + 2&amp;gt; /dev/null | sort -knr5,5 | head -10&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Wed, 22 Aug 2007 12:34:52 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2007-08-22T12:34:52Z</dc:date>
    <item>
      <title>finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058637#M305656</link>
      <description>Admins,&lt;BR /&gt;i have to find out the large file and directory. i searched in our ITRC and almost all the "find" commands gives many "find: cannot open /var/opt/xyz.." which i like to discard.&lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;how to find out the 10 largest files in current directory??&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:00:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058637#M305656</guid>
      <dc:creator>sekar_1</dc:creator>
      <dc:date>2007-08-22T11:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058638#M305657</link>
      <description>try this:&lt;BR /&gt;&lt;BR /&gt;du -sk * |sort -n |tail -10&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 22 Aug 2007 11:10:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058638#M305657</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-08-22T11:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058639#M305658</link>
      <description>find / somefile  2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;that will not display "find: cannot open"&lt;BR /&gt;&lt;BR /&gt;add -size option to find files bigger then a certain size.&lt;BR /&gt;&lt;BR /&gt;man find for details...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 22 Aug 2007 11:12:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058639#M305658</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-22T11:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058640#M305659</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;ls -l| sort -nrk5| head -10&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;John K.</description>
      <pubDate>Wed, 22 Aug 2007 11:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058640#M305659</guid>
      <dc:creator>john korterman</dc:creator>
      <dc:date>2007-08-22T11:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058641#M305660</link>
      <description>To get rid out the cannot open message simply redirect stderr to /dev/null.&lt;BR /&gt;&lt;BR /&gt;find . -type f -exec ls -l {} \+ 2&amp;gt;/dev/null | sort -k n5,5 | tail -n 10&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:16:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058641#M305660</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-22T11:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058642#M305661</link>
      <description>find /usr -size +10240c 2&amp;gt;/dev/null&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;that will list all files bigger then 10240 bytes...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Wed, 22 Aug 2007 11:17:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058642#M305661</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-22T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058643#M305662</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# du -xk|sort -rnk1,1|head -11&lt;BR /&gt;&lt;BR /&gt;...will show the top-10 *directories* in 1k blocks&lt;BR /&gt;&lt;BR /&gt;# find /path -xdev -type f -exec ls -l {} + 2&amp;gt; /dev/null | sort -knr5,5 | head -10&lt;BR /&gt;&lt;BR /&gt;...will find 10-largest *files* in the directory /path discarding any STDERR messages from 'find'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2007 11:23:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058643#M305662</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-22T11:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058644#M305663</link>
      <description>thanks for ur reply.&lt;BR /&gt;&lt;BR /&gt;find /var/opt/ -type f -exec ls -l {} \+ 2&amp;gt;/dev/null | sort -k n5,5 | tail -n 50&lt;BR /&gt;this command gives exactly what i want.&lt;BR /&gt;&lt;BR /&gt;still, to drill down the required result,&lt;BR /&gt;i would like not searching in some paths..say "/var/opt/bin/" inside this i dont want to "find" &lt;BR /&gt;&lt;BR /&gt;in other words, lets think like i have to find large files in / while excluding /bin/ , /stand and /sbin&lt;BR /&gt;&lt;BR /&gt;thanks a lot admins..</description>
      <pubDate>Wed, 22 Aug 2007 12:24:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058644#M305663</guid>
      <dc:creator>sekar_1</dc:creator>
      <dc:date>2007-08-22T12:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058645#M305664</link>
      <description>&amp;gt;i would like not searching in some paths.  say "/var/opt/bin/" inside this i don't want to "find"&lt;BR /&gt;&lt;BR /&gt;You can use:&lt;BR /&gt;find /var/opt/ ! -path "/var/opt/bin/*"&lt;BR /&gt;&lt;BR /&gt;And just repeat for more directories.&lt;BR /&gt;&lt;BR /&gt;(There is no /bin/, it's just a link, so you need to exclude /usr/bin/.)</description>
      <pubDate>Wed, 22 Aug 2007 12:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058645#M305664</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-08-22T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058646#M305665</link>
      <description>Hi (again) Sekar:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; lets think like i have to find large files in / while excluding /bin/ , /stand and /sbin&lt;BR /&gt;&lt;BR /&gt;First, if you are gonig to start with '/' you probably want to add the '-xdev' switch so that you do *not* visit mountpoints:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ...&lt;BR /&gt;&lt;BR /&gt;Since '/bin' is a symbolic link to '/usr' this will eliminate visiting that directory.  As for skipping '/stand' and '/sbin' do:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ! -path "/sbin/*" -a ! -path "/stand/*"&lt;BR /&gt;&lt;BR /&gt;THUS, in all:&lt;BR /&gt;&lt;BR /&gt;# find / -xdev -type f ! -path "/sbin/*" -a ! -path "/stand/*"&lt;BR /&gt;-exec ls -l {} + 2&amp;gt; /dev/null | sort -knr5,5 | head -10&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 22 Aug 2007 12:34:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058646#M305665</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-08-22T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058647#M305666</link>
      <description>Few examples below to find files larger/equal to certain size, use -xdev to restrict to only this directory. This example trying to find huge files in root directory:&lt;BR /&gt;&lt;BR /&gt;# find / â  xdev â  size +3145728c (To list &amp;gt;=3MB)&lt;BR /&gt;# find / -xdev -size +8388608c (To list &amp;gt;=8MB)&lt;BR /&gt;# find / -xdev -size +10485760c  (To list &amp;gt;=10MB)&lt;BR /&gt;# find / -xdev -size +104857600c (To list &amp;gt;=100MB)&lt;BR /&gt;# find / -xdev -size +1073741824c (To list &amp;gt;=1GB)&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Aug 2007 04:20:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058647#M305666</guid>
      <dc:creator>tsf_1</dc:creator>
      <dc:date>2007-08-23T04:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: finding out large file and directory</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058648#M305667</link>
      <description>thanks a lot for all..</description>
      <pubDate>Thu, 23 Aug 2007 09:25:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/finding-out-large-file-and-directory/m-p/4058648#M305667</guid>
      <dc:creator>sekar_1</dc:creator>
      <dc:date>2007-08-23T09:25:03Z</dc:date>
    </item>
  </channel>
</rss>

