home *** CD-ROM | disk | FTP | other *** search
- DU is a small UNIX-like utility to show how much space is occupied by a
- directory tree.
- It can show how much space is occupied by the entire directory tree or by
- any number of filespecs, optionally including hidden/ system files or
- excluding any number of filespecs, it can show the size of every file, just
- the directory totals, or just the grand total. Sounds complex?
-
- DU alone will show the directory totals, including the true size of every
- visible file in the directory, the size of the directory table itself, and
- all its subdirectories.
- Option a (du /a or du -a) will include hidden/system files as well.
- Option f will list the file sizes as well as the directory totals.
- Option n will not include subirectories in the directory size.
- Option t will skip the directory totals and display only the grand total.
- This is not the same as /0. /0 /f won't show induvidual files except in
- the current directory.
- Option z will suppress 0k files and directories.
- Option 0..9 (a single digit) shows directories down to the specified
- level. Directories deeper are counted but not listed.
- Option h or ? will display a short help screen.
- Option x will exclude the following filespecs. Any filespecs before /x
- on the command line are included in the totals, any filespecs after /x will
- be excluded.
-
- Filespecs may contain * (matches any sequence of chars), ? (matches any
- single char), and [charlist] (matches any single char in the list, or any
- charcter in a range, eg. [a-d] matches A, B, C and D).
- If any include filespecs are specified, the directory table will not be
- counted in the totals. Exclude filespecs don't matter.
-
- du /f /z *asm* /x *.asm
- will display the size and path of every file whose name contains ASM
- anywhere except as file type, and how much space these files occupy in each
- directory. TASM.EXE is displayed, RM.ASM isn't.
- du /z /n *.obj
- will show how much space is occupied by .obj files in each directory that
- contains at least one. .obj files in subdirectories aren't counted in the
- directory size.
- du /f /t *.bak *.bk[!1-9]
- will show all the backup files in the tree, ie. files with a file type of
- BAK, BK!, BK1, BK2, BK3, BK4, BK5, BK6, BK7, BK8 or BK9.
- du /x *.bak *.bk[!1-9]
- will show the directory totals excluding any backup files (and hidden /
- system files).
- du /t *.zip *.arc *.arj *.lzh *.gif *.jpg *.pcx
- will find out how much of your precious hard disk is wasted on archives or
- pretty pictures.
-
- DU is written using JPI's TS Modula-2 v3.01. It is completely bug-free
- (or is it?), though there is one known, umh, feature: DU will show how
- much space is required to store each directory table, not how much is
- actually used. The root directory and any subdirectories with a lot of
- deleted files use a bit more space than DU shows.
-
- If you like or use DU or any of my other utilities, please send me a
- postcard at the following address:
- Arnt Gulbrandsen
- Postboks 1036
- N-7801 Namsos
- Norway
-
- If you have any questions / comments, send them to me at the above
- address or by email to agulbra@siri.unit.no.