Quickest way I know at command line
edtf '/'
Put a 6 (path Size) next to a directory you will then see the display show size number of Directories and number of files.
When you drill down on the directory file size will show.
On larger directories it may take awhile for display to change to show size.
When drilling down files will show size but directories will need another 6 next to name to drill further.
Last Wiki Answer Submitted: May 5, 2011 6:22 pm by Rickmcd1,480 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Simplest method might be to share the directory out to the Windows network, then use Windows Explorer to show the ‘Properties’.
Or you might use the ls utility in Qshell with the -l parameter. The size of the listed directory is given on the first line, before directory entries are listed. (That’s similar to what Windows Explorer does as part of retrieving properties.)
I haven’t quite determined appropriate usage of du nor df in Qshell, though both seem functional even if documentation is practically non-existent. The -k flag helps a little in reporting 1024-byte blocks rather than 512. But the exact relationship to actual useful sizes isn’t obvious either way.
Maybe someday I’ll find out enough to pin them down.
BTW, for individual streamfiles, you can always use DSPLNK to get to option 8=’Display attributes’. Both actual size and ‘allocated’ size are among the available attributes.
Thank you all for the answers. Actually I don’t want to any manual process by using command “WRKLNK” and option “6″ against each link to find out the size. I have more than 1000 links/sub links under that, so it is not practically possible to do anything manually.
What I am looking for is CLP/QShell script to give a report (spool file) of all links/sub links under that with size. So that, I can see the report to know what are the links in my system to take necessary action to free up some space.
Then the Qshell utilities are probably your best choice if you create a custom function. A shell script, or perhaps just a compound command could do the work. You could have it run automatically if needed.
“RTVDIRINF” and PRTDIRINF
RTVDIRINF should perhaps be set up to run periodically anyway, maybe weekly. It’s not often a good idea to run it on demand during working hours. If you can trust it to be reasonably stable during the time between runs, then PRTDIRINF can be a good solution.
Simplest method might be to share the directory out to the Windows network, then use Windows Explorer to show the ‘Properties’.
Or you might use the ls utility in Qshell with the -l parameter. The size of the listed directory is given on the first line, before directory entries are listed. (That’s similar to what Windows Explorer does as part of retrieving properties.)
Tom
If you can use qshell, you can try:
(to show sizes of all folders in current location)
or
(to summarize the whole folder you are in only)
I do it in Linux all the time, but can’t for the life of me figure out how to get the one in qshell to show ‘human readable’ numbers…
I haven’t quite determined appropriate usage of du nor df in Qshell, though both seem functional even if documentation is practically non-existent. The -k flag helps a little in reporting 1024-byte blocks rather than 512. But the exact relationship to actual useful sizes isn’t obvious either way.
Maybe someday I’ll find out enough to pin them down.
Tom
BTW, for individual streamfiles, you can always use DSPLNK to get to option 8=’Display attributes’. Both actual size and ‘allocated’ size are among the available attributes.
Tom
Thank you all for the answers. Actually I don’t want to any manual process by using command “WRKLNK” and option “6″ against each link to find out the size. I have more than 1000 links/sub links under that, so it is not practically possible to do anything manually.
What I am looking for is CLP/QShell script to give a report (spool file) of all links/sub links under that with size. So that, I can see the report to know what are the links in my system to take necessary action to free up some space.
Hope my requirement is clear.
Hi,
I managed to get the report by using command “RTVDIRINF” and PRTDIRINF.
Cheers.
I don’t want to any manual process…
Then the Qshell utilities are probably your best choice if you create a custom function. A shell script, or perhaps just a compound command could do the work. You could have it run automatically if needed.
“RTVDIRINF” and PRTDIRINF
RTVDIRINF should perhaps be set up to run periodically anyway, maybe weekly. It’s not often a good idea to run it on demand during working hours. If you can trust it to be reasonably stable during the time between runs, then PRTDIRINF can be a good solution.
Tom