- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Directory Size
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 02:19 AM
тАО12-05-2008 02:19 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 02:28 AM
тАО12-05-2008 02:28 AM
Re: Directory Size
DIR /GRAND/SIZE
which returned
Grand total of 1 directory, 192 files, 910022 blocks
or for a directory tree
$ dir [...]/grand/siz
Grand total of 9624 directories, 54114 files, 8713116 blocks.
So you want
DIR [.name_of_directory...]/grand/siz
cheers
Brian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 03:42 AM
тАО12-05-2008 03:42 AM
Re: Directory Size
WADR, DIRECTORY/SIZE/GRAND does not tell the entire story.
For example, consider the following output from one of my systems:
$ DIRECTORY/SIZE/GRAND
Directory SYS$SYSDEVICE:[GEZELTER]
Grand total of 1 directory, 313 files, 101628 blocks.
$ DIRECTORY/SIZE:ALL/GRAND
Directory SYS$SYSDEVICE:[GEZELTER]
Grand total of 1 directory. 313 files, 101628/101976 blocks.
The number before the "/" is the number of blocks actually containing data, the number after the "/" is the number of blocks allocated.
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.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 03:51 AM
тАО12-05-2008 03:51 AM
Re: Directory Size
Directory
Size (used/allocated), number of directories and files
Subdirectories
Size (used/allocated), number of directories and files
With that I will be able to have a complete output.
If you know any script that can help, just let me know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 03:57 AM
тАО12-05-2008 03:57 AM
Re: Directory Size
$ DIREC/SIZE/TOT [...]
which gives the data for each subdir as well as the grand total.
regards Karl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 03:59 AM
тАО12-05-2008 03:59 AM
SolutionI am not sure if it is worth USD $ 1,000,000.00, but:
$ DIRECTORY [...]/SIZE:ALL/TOTAL
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).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 03:59 AM
тАО12-05-2008 03:59 AM
Re: Directory Size
dir/siz/tot/full disk:[dir...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 04:13 AM
тАО12-05-2008 04:13 AM
Re: Directory Size
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-05-2008 06:02 AM
тАО12-05-2008 06:02 AM
Re: Directory Size
$! 'f$ver(0)
$ loop:
$ r = f$search("dsa2:[000000...]*.dir")
$ if r.eqs."" then exit
$ dev = f$parse(r,,,"DEVICE")
$ di = f$parse(r,,,"DIRECTORY")-"]"
$ name = f$parse(r,,,"NAME")
$! 'f$ver(1)
$ dir /gr/siz=all 'dev''di'.'name']
$! 'f$ver(0)
$ wait 00:00:02
$ goto loop