NoSerC | Norwegian Service Centre for Climate Modelling -> /noserc User Guide -> DMDU (1) | ||||||||||
|
NAMEdmdu - collect DMF file space usage SYNOPSISdmdu [-s,-f] [-k|-m|-g] dir ... DESCRIPTIONPrints statistics from tape/disk usage for given directories. dmdu is based on dmls(1) and parses output from dmls -lRa for the given directories to generate the statistics. OPTIONS
The default is to print a summary for the given directory, including subdirectories, with size in bytes. Space conversion between B/KB/MB/GB is in 1024-base. Note that space size and number of files include those that are found both "On disk" and "On tape", but only counted once in "Total". The numbers written by -s and -f do not include content of subdirectories. Accumulated size / number of files is only printed for the directory named in the command line. FILESThis command is /noserc/felles/bin/dmdu ENVIRONMENTPATH must include the DMF directory, currently /usr/dmf/dmbase/dmbase/bin DIAGNOSTICSProgram returns 0 if completed without errors. If the given directory name does not exist, an error message is written and the program halted with return code 2. BUGSRequires that dmls(1) is in search path. There is no way to collect status for files you do not have access rights to. In such cases an error message is written to stderr from dmls(1) with the name of the file/directory This program is not very efficient or robust, improvements are welcomed. AUTHORArild Burud <noserc@dnmi.no> EXAMPLEFor status in MB of every subdirectory the command
will print as follows :
SEE ALSOdmattr(1), dmcopy(1), dmfind(1), dmget(1), dmls(1), dmput(1) |
||||||||||
Send comments to webmaster |