home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / du.arj / DU.TXT < prev   
Encoding:
Text File  |  1991-08-08  |  3.1 KB  |  63 lines

  1.   DU is a small UNIX-like utility to show how much space is occupied by a 
  2. directory tree.
  3.   It can show how much space is occupied by the entire directory tree or by 
  4. any number of filespecs, optionally including hidden/ system files or 
  5. excluding any number of filespecs, it can show the size of every file, just 
  6. the directory totals, or just the grand total.  Sounds complex?
  7.  
  8.   DU alone will show the directory totals, including the true size of every 
  9. visible file in the directory, the size of the directory table itself, and 
  10. all its subdirectories.
  11.   Option a (du /a or du -a) will include hidden/system files as well.
  12.   Option f will list the file sizes as well as the directory totals.
  13.   Option n will not include subirectories in the directory size.
  14.   Option t will skip the directory totals and display only the grand total.  
  15. This is not the same as /0.  /0 /f won't show induvidual files except in 
  16. the current directory.
  17.   Option z will suppress 0k files and directories.
  18.   Option 0..9 (a single digit) shows directories down to the specified 
  19. level.  Directories deeper are counted but not listed.
  20.   Option h or ? will display a short help screen.
  21.   Option x will exclude the following filespecs.  Any filespecs before /x 
  22. on the command line are included in the totals, any filespecs after /x will 
  23. be excluded.
  24.  
  25.   Filespecs may contain * (matches any sequence of chars), ? (matches any 
  26. single char), and [charlist] (matches any single char in the list, or any 
  27. charcter in a range, eg. [a-d] matches A, B, C and D).
  28.   If any include filespecs are specified, the directory table will not be 
  29. counted in the totals.  Exclude filespecs don't matter.
  30.  
  31.   du /f /z *asm* /x *.asm
  32. will display the size and path of every file whose name contains ASM 
  33. anywhere except as file type, and how much space these files occupy in each 
  34. directory.  TASM.EXE is displayed, RM.ASM isn't.
  35.   du /z /n *.obj
  36. will show how much space is occupied by .obj files in each directory that 
  37. contains at least one.  .obj files in subdirectories aren't counted in the 
  38. directory size.
  39.   du /f /t *.bak *.bk[!1-9]
  40. will show all the backup files in the tree, ie. files with a file type of 
  41. BAK, BK!, BK1, BK2, BK3, BK4, BK5, BK6, BK7, BK8 or BK9.
  42.   du /x *.bak *.bk[!1-9]
  43. will show the directory totals excluding any backup files (and hidden / 
  44. system files).
  45.   du /t *.zip *.arc *.arj *.lzh *.gif *.jpg *.pcx
  46. will find out how much of your precious hard disk is wasted on archives or 
  47. pretty pictures.
  48.  
  49.   DU is written using JPI's TS Modula-2 v3.01.  It is completely bug-free 
  50. (or is it?), though there is one known, umh, feature:  DU will show how 
  51. much space is required to store each directory table, not how much is 
  52. actually used.  The root directory and any subdirectories with a lot of 
  53. deleted files use a bit more space than DU shows.
  54.  
  55.   If you like or use DU or any of my other utilities, please send me a 
  56. postcard at the following address:
  57. Arnt Gulbrandsen
  58. Postboks 1036
  59. N-7801 Namsos
  60. Norway
  61.  
  62.   If you have any questions / comments, send them to me at the above 
  63. address or by email to agulbra@siri.unit.no.