<?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: Directory Size in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144921#M92326</link>
    <description>If you need data on every subdirectoy you may use:&lt;BR /&gt;&lt;BR /&gt;$ DIREC/SIZE/TOT [...]&lt;BR /&gt;&lt;BR /&gt;which gives the data for each subdir as well as the grand total.&lt;BR /&gt;&lt;BR /&gt;regards Karl</description>
    <pubDate>Fri, 05 Dec 2008 11:57:13 GMT</pubDate>
    <dc:creator>Karl Rohwedder</dc:creator>
    <dc:date>2008-12-05T11:57:13Z</dc:date>
    <item>
      <title>Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144917#M92322</link>
      <description>Hi guys,&lt;BR /&gt;&lt;BR /&gt;I would like to know if I can see the size of one specific directory, with several files and subdirectories in it. When I issue dir/size name_of_directory.dir, it will tell me the size of that particular file, without counting the other files inside it. An example of what I'm talking about is the right-click Properties option in MS Windows. It will give an output of directory size and how many files are inside.</description>
      <pubDate>Fri, 05 Dec 2008 10:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144917#M92322</guid>
      <dc:creator>Alexandre Cruz_1</dc:creator>
      <dc:date>2008-12-05T10:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144918#M92323</link>
      <description>Something like &lt;BR /&gt;&lt;BR /&gt;DIR /GRAND/SIZE&lt;BR /&gt;&lt;BR /&gt;which returned&lt;BR /&gt;&lt;BR /&gt;Grand total of 1 directory, 192 files, 910022 blocks&lt;BR /&gt;&lt;BR /&gt;or for a directory tree&lt;BR /&gt;&lt;BR /&gt;$ dir [...]/grand/siz&lt;BR /&gt;&lt;BR /&gt;Grand total of 9624 directories, 54114 files, 8713116 blocks.&lt;BR /&gt;&lt;BR /&gt;So you want&lt;BR /&gt;&lt;BR /&gt;DIR [.name_of_directory...]/grand/siz&lt;BR /&gt;&lt;BR /&gt;cheers&lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Fri, 05 Dec 2008 10:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144918#M92323</guid>
      <dc:creator>Brian Reiter</dc:creator>
      <dc:date>2008-12-05T10:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144919#M92324</link>
      <description>Alexandre,&lt;BR /&gt;&lt;BR /&gt;WADR, DIRECTORY/SIZE/GRAND does not tell the entire story.&lt;BR /&gt;&lt;BR /&gt;For example, consider the following output from one of my systems:&lt;BR /&gt;&lt;BR /&gt;$ DIRECTORY/SIZE/GRAND&lt;BR /&gt;Directory SYS$SYSDEVICE:[GEZELTER]&lt;BR /&gt;&lt;BR /&gt;Grand total of 1 directory, 313 files, 101628 blocks.&lt;BR /&gt;&lt;BR /&gt;$ DIRECTORY/SIZE:ALL/GRAND&lt;BR /&gt;Directory SYS$SYSDEVICE:[GEZELTER]&lt;BR /&gt;&lt;BR /&gt;Grand total of 1 directory. 313 files, 101628/101976 blocks.&lt;BR /&gt;&lt;BR /&gt;The number before the "/" is the number of blocks actually containing data, the number after the "/" is the number of blocks allocated. &lt;BR /&gt;&lt;BR /&gt;The cluster size from the above example is 3. On a disk volume with a larger cluster size, and a large number of smaller files, the differences can be quite dramatic. I have often seen differences of over 20% between the two numbers.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 05 Dec 2008 11:42:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144919#M92324</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-12-05T11:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144920#M92325</link>
      <description>Thank you very much for your answers. Now the "Million Dollar question", picking your answers, I will be able to create a script that will give me the following output:&lt;BR /&gt;&lt;BR /&gt;Directory&lt;BR /&gt;Size (used/allocated), number of directories and files&lt;BR /&gt;&lt;BR /&gt;Subdirectories &lt;BR /&gt;Size (used/allocated), number of directories and files&lt;BR /&gt;&lt;BR /&gt;With that I will be able to have a complete output.&lt;BR /&gt;&lt;BR /&gt;If you know any script that can help, just let me know.</description>
      <pubDate>Fri, 05 Dec 2008 11:51:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144920#M92325</guid>
      <dc:creator>Alexandre Cruz_1</dc:creator>
      <dc:date>2008-12-05T11:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144921#M92326</link>
      <description>If you need data on every subdirectoy you may use:&lt;BR /&gt;&lt;BR /&gt;$ DIREC/SIZE/TOT [...]&lt;BR /&gt;&lt;BR /&gt;which gives the data for each subdir as well as the grand total.&lt;BR /&gt;&lt;BR /&gt;regards Karl</description>
      <pubDate>Fri, 05 Dec 2008 11:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144921#M92326</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2008-12-05T11:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144922#M92327</link>
      <description>Alexandre,&lt;BR /&gt;&lt;BR /&gt;I am not sure if it is worth USD $ 1,000,000.00, but:&lt;BR /&gt;&lt;BR /&gt;$ DIRECTORY [...]/SIZE:ALL/TOTAL&lt;BR /&gt;&lt;BR /&gt;Produces about what you requested.  Note that the full range of the wildcard operations is possible, not just "[...]". One could also do the equivalent in DCL, processing one file at a time, if one wanted to for some other reason (gathering some other statistics or information about a collection of files).&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Fri, 05 Dec 2008 11:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144922#M92327</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2008-12-05T11:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144923#M92328</link>
      <description>try :-&lt;BR /&gt;&lt;BR /&gt; dir/siz/tot/full disk:[dir...]</description>
      <pubDate>Fri, 05 Dec 2008 11:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144923#M92328</guid>
      <dc:creator>marsh_1</dc:creator>
      <dc:date>2008-12-05T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144924#M92329</link>
      <description>All the answers provided me to find what I was searching. Kudos to all of you who helped me.</description>
      <pubDate>Fri, 05 Dec 2008 12:13:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144924#M92329</guid>
      <dc:creator>Alexandre Cruz_1</dc:creator>
      <dc:date>2008-12-05T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Directory Size</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144925#M92330</link>
      <description>try this for dsa2, for example&lt;BR /&gt;&lt;BR /&gt;$! 'f$ver(0)&lt;BR /&gt;$ loop:&lt;BR /&gt;$ r = f$search("dsa2:[000000...]*.dir")&lt;BR /&gt;$ if r.eqs."" then exit&lt;BR /&gt;$ dev = f$parse(r,,,"DEVICE")&lt;BR /&gt;$ di = f$parse(r,,,"DIRECTORY")-"]"&lt;BR /&gt;$ name = f$parse(r,,,"NAME")&lt;BR /&gt;$! 'f$ver(1)&lt;BR /&gt;$ dir /gr/siz=all 'dev''di'.'name']&lt;BR /&gt;$! 'f$ver(0)&lt;BR /&gt;$ wait 00:00:02&lt;BR /&gt;$ goto loop</description>
      <pubDate>Fri, 05 Dec 2008 14:02:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/directory-size/m-p/5144925#M92330</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2008-12-05T14:02:58Z</dc:date>
    </item>
  </channel>
</rss>

