Norwegian Service Centre for Climate Modelling -> /noserc User Guide -> DMDU (1)
 
 

 

     

NAME

dmdu - collect DMF file space usage

SYNOPSIS

dmdu [-s,-f] [-k|-m|-g] dir ...

DESCRIPTION

Prints 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

-s

-f

-k

-m

-g

Show space used in each subdirectory

Show number of files in each directory

Show space in KiloBytes

Show space in MegaBytes

Show space in GigaBytes

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.

FILES

This command is /noserc/felles/bin/dmdu

ENVIRONMENT

PATH must include the DMF directory, currently /usr/dmf/dmbase/dmbase/bin

DIAGNOSTICS

Program 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.

BUGS

Requires 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.

AUTHOR

Arild Burud <noserc@dnmi.no>

EXAMPLE

For status in MB of every subdirectory the command

dmdu -s -m /noserc/foo

will print as follows :

Total     On disk   On tape      Directory
       0         0         0 MB /noserc/foo
       1         1         0 MB /noserc/foo/bar
   21082         0     21082 MB /noserc/foo/bar/96o
   20872         0     20872 MB /noserc/foo/bar/97o
   20989         0     20989 MB /noserc/foo/bar/98o
   20953         0     20953 MB /noserc/foo/bar/99o

   83896         1     83895 MB /noserc/foo
   11721         1     11720  # files and 5 directories

SEE ALSO

dmattr(1), dmcopy(1), dmfind(1), dmget(1), dmls(1), dmput(1)


 

Send comments to webmaster