- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: total size of files under a directory
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
тАО04-15-2009 01:16 AM
тАО04-15-2009 01:16 AM
total size of files under a directory
e.g. all the files list with their size that exist in MUM$DKA400:[USERS]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 01:30 AM
тАО04-15-2009 01:30 AM
Re: total size of files under a directory
DIREC /SIZE[=all][/Total][/GRAND]
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 02:12 AM
тАО04-15-2009 02:12 AM
Re: total size of files under a directory
> DIREC /SIZE[=all][/Total][/GRAND]
MUM$DKA400:[USERS...]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 03:40 AM
тАО04-15-2009 03:40 AM
Re: total size of files under a directory
Steven gave the answer that is usually correct.
However, there is one detail that needs to be checked.
_IF_ any of the directories has an alias, _THEN_ all of it and its subdirectories are counted again (and again for multiple aliasses).
Now, your syntax of MUM$DKA400:[USERS] seems to make that unlikely, as it SUGGESTS that the nodename is MUM and the device is the one that carries the PHYSICAL identification of DKA400, but I have several times into situations where the application device name (here "MUM$DKA400:" ) is a redefinition of SYS$SYSROOT (a practise I most strongly DISAPPROVE of, but you find what you find...) and THEN my first paragraph applies.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 05:39 AM
тАО04-15-2009 05:39 AM
Re: total size of files under a directory
One more query: Could I sort the output by size of files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 05:53 AM
тАО04-15-2009 05:53 AM
Re: total size of files under a directory
Not directly; not with the base system.
With the default OpenVMS tools you can select (rather than sort) by a specified size. DIRECTORY /SELECT = SIZE = MINIMUM = value is probably the most useful of these.
There are add-on tools which can provide various sort orders for directory listings, or you can combine existing tools akin to the following (by date) example:
http://h71000.www7.hp.com/wizard/wiz_7290.html
It can also be feasible to use gnv or other such, and use the bash shell (which allows you to do this sort of thing) as an alternative to DCL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2009 06:15 AM
тАО04-15-2009 06:15 AM
Re: total size of files under a directory
One more query: Could I sort the output by size of files?
You could use QDSB. Works (almost) like DIRECTORY. To be downloaded from:
http://www.quadratrix.be/qdsb.html
Regards,
Kris (aka Qkcl)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-16-2009 05:40 AM
тАО04-16-2009 05:40 AM
Re: total size of files under a directory
$ pipe dir/col=1/wid=file=40/size | sort sys$pipe /key=(pos:40,siz:9) sys$output
JT: