<?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: file count in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443349#M769672</link>
    <description>The quickest way is probably :-&lt;BR /&gt;&lt;BR /&gt;bdf -i&lt;BR /&gt;&lt;BR /&gt;Then just look at the iused column. Each file and directory requires 1 inode.</description>
    <pubDate>Thu, 07 Sep 2000 08:33:36 GMT</pubDate>
    <dc:creator>Andy Monks</dc:creator>
    <dc:date>2000-09-07T08:33:36Z</dc:date>
    <item>
      <title>file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443343#M769666</link>
      <description>Is there a way to count all the files on a server (HP-UX 10.20) other than using find?</description>
      <pubDate>Thu, 07 Sep 2000 07:42:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443343#M769666</guid>
      <dc:creator>DHL International Italy</dc:creator>
      <dc:date>2000-09-07T07:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443344#M769667</link>
      <description>how about &lt;BR /&gt;du / -a | wc -l&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2000 07:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443344#M769667</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-09-07T07:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443345#M769668</link>
      <description>&lt;BR /&gt;ls -R | wc -l</description>
      <pubDate>Thu, 07 Sep 2000 07:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443345#M769668</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-09-07T07:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443346#M769669</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to avoid for du walking thru NFS use:&lt;BR /&gt;&lt;BR /&gt;du -t hfs -t vxfs -a / | wc -l&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 07 Sep 2000 07:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443346#M769669</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-09-07T07:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443347#M769670</link>
      <description>Use ls -aR /|wc -l</description>
      <pubDate>Thu, 07 Sep 2000 08:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443347#M769670</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-09-07T08:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443348#M769671</link>
      <description>What is it that you are actually trying to achieve?&lt;BR /&gt;&lt;BR /&gt;The previous replies are good if you just want to find how many files and directories exist.</description>
      <pubDate>Thu, 07 Sep 2000 08:26:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443348#M769671</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-09-07T08:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443349#M769672</link>
      <description>The quickest way is probably :-&lt;BR /&gt;&lt;BR /&gt;bdf -i&lt;BR /&gt;&lt;BR /&gt;Then just look at the iused column. Each file and directory requires 1 inode.</description>
      <pubDate>Thu, 07 Sep 2000 08:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443349#M769672</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-09-07T08:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443350#M769673</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Andy's solution is indeed the best and the quickest.&lt;BR /&gt;&lt;BR /&gt;To calculate the total number of files on all mounted file systems:&lt;BR /&gt;&lt;BR /&gt;-------------------&lt;BR /&gt;total_files=0&lt;BR /&gt;set $(bdf -i)&lt;BR /&gt;shift 10&lt;BR /&gt;while [ $# -gt 1 ]&lt;BR /&gt;do&lt;BR /&gt;       let total_files=$total_files+$6&lt;BR /&gt;       shift 9&lt;BR /&gt;done&lt;BR /&gt;print $total_files&lt;BR /&gt;----------------------&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Rik.</description>
      <pubDate>Thu, 07 Sep 2000 09:09:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443350#M769673</guid>
      <dc:creator>RikTytgat</dc:creator>
      <dc:date>2000-09-07T09:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443351#M769674</link>
      <description>Hi,&lt;BR /&gt;TO count total number of files on all mounted local file systems run following script:&lt;BR /&gt;&lt;BR /&gt;total_files=0&lt;BR /&gt;for number in `bdf -il | grep -v Filesystem | awk '{print $6}'`&lt;BR /&gt;do&lt;BR /&gt;  total_files=`expr $total_files + $number`&lt;BR /&gt;done&lt;BR /&gt;echo $total_files&lt;BR /&gt;Regards.&lt;BR /&gt;Punjabhai V Patel&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Sep 2000 14:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443351#M769674</guid>
      <dc:creator>P V Patel</dc:creator>
      <dc:date>2000-09-07T14:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443352#M769675</link>
      <description>Just the for the fun of it you could also do&lt;BR /&gt;&lt;BR /&gt;find / | wc -l&lt;BR /&gt;&lt;BR /&gt;reember though in most of the methods you will be counting . and ..&lt;BR /&gt;But in find you could do somthing like&lt;BR /&gt;find . | grep -v ". " | grep -v ".. " | wc -l&lt;BR /&gt;&lt;BR /&gt;and if you didnt want nfs dir's you can add this as an option to find</description>
      <pubDate>Sat, 09 Sep 2000 03:18:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443352#M769675</guid>
      <dc:creator>Anthony Goonetilleke</dc:creator>
      <dc:date>2000-09-09T03:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: file count</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443353#M769676</link>
      <description>You can use the following commands.&lt;BR /&gt;&lt;BR /&gt;ll -R |grep -v ^d | wc -l &lt;BR /&gt;ll |wc -l&lt;BR /&gt;&lt;BR /&gt;rgds.&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Sep 2000 04:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-count/m-p/2443353#M769676</guid>
      <dc:creator>Mr Amir Mujtabain</dc:creator>
      <dc:date>2000-09-25T04:08:17Z</dc:date>
    </item>
  </channel>
</rss>

