<?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: find command in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728906#M1666</link>
    <description>Ok, lets see if I can get this straight.&lt;BR /&gt;&lt;BR /&gt;You're not looking for an individual file which is greater than 40Mb, correct?  You're looking for a directory structure?&lt;BR /&gt;&lt;BR /&gt;If so, 'find' won't tally up the contents of a drectory and give you a total.  For that, you use the 'du' command.&lt;BR /&gt;&lt;BR /&gt;   cd /usr/eng/cardeng&lt;BR /&gt;   du -x -k --max-depth=1&lt;BR /&gt;&lt;BR /&gt;Whilst this won't just show directires that have greater than 40Mb, it will show the sum total of the directory structures under that tree.  It'd print out somehting like:&lt;BR /&gt;&lt;BR /&gt;  2038      ./joe_bloggs&lt;BR /&gt;  40283     ./willie_hacker&lt;BR /&gt;&lt;BR /&gt;Beyond that, standard text-parsing tools would help you (| awk '{if ($1 &amp;gt; 40000) {print}}') or some such.&lt;BR /&gt;&lt;BR /&gt;If you are implementing 'quota's on the filesystem, then the Quota tools should also be able to help you.</description>
    <pubDate>Wed, 22 May 2002 22:38:33 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2002-05-22T22:38:33Z</dc:date>
    <item>
      <title>find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728904#M1664</link>
      <description>I had used find to search for user home directories having quota their quota &amp;gt; 40MB, in their home dirs in /usr/eng/cadeng:&lt;BR /&gt;&lt;BR /&gt;/usr/eng/cadeng/joe_bloggs&lt;BR /&gt;/usr/eng/cadeng/willy_hacker&lt;BR /&gt;&lt;BR /&gt;I did the following under /usr/eng: &lt;BR /&gt;# find . -type /cadeng/willy_hacker -size +40000k  &lt;BR /&gt;&lt;BR /&gt;Unfortunately, it did not print anything.&lt;BR /&gt;&lt;BR /&gt;I had also tried the following under /usr/eng/cadeng&lt;BR /&gt;#find . -size +40000k&lt;BR /&gt;&lt;BR /&gt;which only searches for individual files under a directorty exceeding 40MB.&lt;BR /&gt;&lt;BR /&gt;I also tried :&lt;BR /&gt;#find . -type -d willy_hacker -size +40000k which produced:&lt;BR /&gt;find: 0652-009 There is a missing conjunction error&lt;BR /&gt;&lt;BR /&gt;Could someone help me on this?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 22 May 2002 08:42:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728904#M1664</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-05-22T08:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728905#M1665</link>
      <description>Hello Chern,&lt;BR /&gt;&lt;BR /&gt;I used the following:&lt;BR /&gt;&lt;BR /&gt;[root@penguin /root]# find / -size +4000k -print&lt;BR /&gt;/usr/lib/rpmdb/i386-redhat-linux/redhat/Basenames&lt;BR /&gt;/usr/lib/rpmdb/i386-redhat-linux/redhat/Packages&lt;BR /&gt;/usr/lib/libgcj.so.1.0.0&lt;BR /&gt;/usr/lib/libgcj.a&lt;BR /&gt;/usr/lib/libc.a&lt;BR /&gt;/usr/lib/netscape/netscape-communicator&lt;BR /&gt;/usr/lib/qt-2.3.0/lib/libqt-mt.so.2.3.0&lt;BR /&gt;/usr/lib/qt-2.3.0/lib/libqt.so.2.3.0&lt;BR /&gt;/usr/bin/gs&lt;BR /&gt;/usr/X11R6/lib/libMagick.a&lt;BR /&gt;/var/lib/rpm/Packages&lt;BR /&gt;/var/lib/rpm/Basenames&lt;BR /&gt;/proc/kcore&lt;BR /&gt;/lib/i686/libc-2.2.2.so&lt;BR /&gt;&lt;BR /&gt;That seems to work just fine.&lt;BR /&gt;&lt;BR /&gt;Thanks for participating in the forums,&lt;BR /&gt;&lt;BR /&gt;Martin&lt;BR /&gt;Chaos reigns within. Reflect, repent, and reboot. Order shall return.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 May 2002 12:04:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728905#M1665</guid>
      <dc:creator>Martin Burnett_2</dc:creator>
      <dc:date>2002-05-22T12:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: find command</title>
      <link>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728906#M1666</link>
      <description>Ok, lets see if I can get this straight.&lt;BR /&gt;&lt;BR /&gt;You're not looking for an individual file which is greater than 40Mb, correct?  You're looking for a directory structure?&lt;BR /&gt;&lt;BR /&gt;If so, 'find' won't tally up the contents of a drectory and give you a total.  For that, you use the 'du' command.&lt;BR /&gt;&lt;BR /&gt;   cd /usr/eng/cardeng&lt;BR /&gt;   du -x -k --max-depth=1&lt;BR /&gt;&lt;BR /&gt;Whilst this won't just show directires that have greater than 40Mb, it will show the sum total of the directory structures under that tree.  It'd print out somehting like:&lt;BR /&gt;&lt;BR /&gt;  2038      ./joe_bloggs&lt;BR /&gt;  40283     ./willie_hacker&lt;BR /&gt;&lt;BR /&gt;Beyond that, standard text-parsing tools would help you (| awk '{if ($1 &amp;gt; 40000) {print}}') or some such.&lt;BR /&gt;&lt;BR /&gt;If you are implementing 'quota's on the filesystem, then the Quota tools should also be able to help you.</description>
      <pubDate>Wed, 22 May 2002 22:38:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/find-command/m-p/2728906#M1666</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2002-05-22T22:38:33Z</dc:date>
    </item>
  </channel>
</rss>

