NDFU V2.7-A"

DFU V2.7-A


/Previous/ | Contents





'

DELETE



Deletes files or directories.



Format

/

DELETE device[:] or directory-file(s)




PARAMETERS



device

?The device on which to perform the DELETE/FILE=file-id command.

directory-file(s)

?The filespecification of the directory on which to perform the HDELETE/DIRECTORY command. Wildcard file specifications may be used. DFU Fwill automatically add .DIR to the filespecification if a filetype is not provided.



QUALIFIERS



/DIRECTORY

HSpecify the directory file which must be deleted. Wildcards may be used Gbut must be used very carefully. Make sure that the directory does not Fcontain non-empty subdirectories. Note that the directory file itself 9will also be deleted, unless the /KEEP qualifier is used.

Example:

$ DIR EXAMPLE  Directory MYDISK:[RUBBISH]  EXAMPLE.DIR;1  $ DFU %DFU> DELETE/DIRECTORY EXAMPLE.DIR  :%DFU-I-CLEANUP, Deleting MYDISK:[RUBBISH]EXAMPLE.DIR;1... *%DFU-S-DELETED, File DBGINI.COM;3 deleted (%DFU-S-DELETED, File ICON.COM;1 deleted *%DFU-S-DELETED, File I_FOOL.COM;1 deleted -%DFU-S-DELETED, File LOGICALS.COM;51 deleted *%DFU-S-DELETED, File LOGIN.COM;79 deleted *%DFU-S-DELETED, File LOGOUT.COM;4 deleted 1%DFU-S-DELETED, File NOTE_COMPRESS.COM;3 deleted *%DFU-S-DELETED, File SHOWCL.COM;3 deleted ,%DFU-S-DELETED, File SYMBOLS.COM;89 deleted ,%DFU-S-DELETED, File TPUBUILD.COM;5 deleted !%DFU-S-TOTAL, 11 file(s) deleted +%DFU-S-DELETED, File EXAMPLE.DIR;1 deleted 




/FILE=file-id

CSpecify a complete file-id (num,seq,rvn) of the file which must be Cdeleted. This qualifier allows the deletion of lost files or files marked for delete. Example :
$ DFU DFU> VERIFY MYDISK:  ,%DFU-S-CHKHOME, Home block info verified OK &%DFU-I-IFSCAN, Scanning INDEXF.SYS... I%DFU-E-INVBAKFID, file (86,17915,1) 0004CF04$BFS.;1 has invalid backlink K%DFU-W-DELETED, file (537,2878,1) APPL_UTRYIT_BOOK.TMP;1 marked for delete  .  .  .  (DFU> DELETE MYDISK/FILE=(86,17915,1) -%DFU-S-DELETED, File 0004CF04$BFS.;1 deleted  (DFU> DELETE MYDISK/FILE=(537,2878,1) 4%DFU-S-DELETED, File APPL_UTRYIT_BOOK.TMP;1 deleted  




/KEEP

EPreserve the directory tree; only delete the contents. /KEEP is only Dvalid with the /DIRECTORY qualifier. /KEEP works for DELETE/DIR and DELETE/DIR/TREE.

/NOLOG

ADo not log succesfull deletes to SYS$OUTPUT. /LOG is the default.

/NOREMOVE

HCan only be used with /FILE. Default DELETE/FILE will try to remove the Hfile from the parent directory. If the file's backlink no longer points @to a valid directory this will generate an error. The /NOREMOVE Equalifier overrules this behaviour allowing such files to be deleted.

/STATISTICS

FThis qualifier displays the performance statistics: CPU time, Elapsed Time, I/O and PageFaults.

/TREE

ECan only be used with /DIRECTORY. The delete command will delete all Hsubdirectories within the directory file specified. DFU will first sort Bout the subdirectory tree and than delete the files in the proper Border. Thus a complete directory tree is deleted with one command.





7

Chapter 8
DIRECTORY



>This chapter describes the DIRECTORY command with the related parameters and qualifiers.3

8.1 Introduction



FThe DIRECTORY command offers 8 major functions. 3 functions deal with >all directories on a disk, the other 5 functions are used for Fmanipulating individual directories. These functions are activated by special qualifiers:



CWhen using /GRAPH the disk's free space distribution is shown as a Hbitmap image. Each position in the graph represents a certain number of Eblocks (in the example above 3472 blocks). This bitmap image gives a ?quick impression about the free space distribution on the disk.

HIf you use the /USAGE qualifier a sorted usage table will be added. Per CIdentifier / UIC the blocks used/allocated, and the number of file Bheaders are shown. If Diskquota is enabled a third column will be Fincluded which shows the blocks used/permitted allowing to QUOTA.SYS. 2Normally quota should satisfy the following rule :

3 Quota used = blocks allocated + # of file headers 





'

REPORT



5Create a file and free space report of a disk device.



Format



REPORT device[:]




PARAMETERS



device[:]

ADevice to be reported. You may also specify a logical devicename.



QUALIFIERS



/APPEND=filename

AThis qualifier redirects the output to be appended to an already Fexisting file. If the output file does not exists it will be created. ,You can use /APPEND or /OUTPUT but not both.

/GRAPH

GThis qualifier generates a graph table which visualizes the free space 2distribution on the disk. /NOGRAPH is the default.

/NOBITMAP

FThe /NOBITMAP qualifier suppresses the "Free space statistics" output.

/NOFILE

>The /NOFILE qualifier suppressed the "File Statistics" output.

/NOVOLUME

<The /NOVOLUME qualifier suppresses the "Volume info" output.

/OUTPUT=filename

GThis qualifier redirects the output to a file. The output will also go to SYS$OUTPUT.

/STATISTICS

FThis qualifier displays the performance statistics: CPU time, Elapsed Time, I/O and PageFaults.#

/USAGE(=uic or identifier)

EThe /USAGE qualifier will generate a diskspace usage report based on @Identifiers/UIC. If diskquota is enabled on the disk the blocks Hused/permitted allowing to QUOTA.SYS will also be shown. /USAGE is very @useful when diskquota is not enabled on the disk. When a UIC or Hidentifier is specified only the information for this UIC or identifier will be displayed.





6

Chapter 10
SEARCH



FThis chapter describes the SEARCH command with the related parameters and qualifiers.5

10.1 Introduction



FThe search function allows very quick disk-wide searches for specific Bfiles. You can use almost any possible file attribute as a search qualifier.:

10.2 Syntax and Output



!The command syntax for SEARCH is:

!DFU> SEARCH device/qualifiers 


GThe output is displayed on your terminal. You can also sort the output Cwith the /SORT qualifier. The output is shown in 2 or 3 columns eg:

(DFU> SEARCH MYDISK/FILE=X.X/FRAGMENT  .  . @$1$DUA102:[USER.COMMAND]X.X;1             1/3               1/1  .  . 


HThe first column shows the full file name . The device name is included <in the file name. The second columns shows the file size as Cactual/allocated size. The 3rd column is optional and will only be Cshown when the /FRAGMENT qualifier is used. It shows the number of 'fileheaders / number of file fragments.>

10.3 Volume Set processing



FSEARCH checks if the device to-be-searched is member of a volume set. @If so, the complete volume set will be processed, starting with HRelative Volume Number 1 up to the last member in set. You can override ,this behaviour with the /NOVOLSET qualifier.:

10.4 Output formatting



HThe qualifier /FORMAT can be used with SEARCH. This allows the build up Hof a command procedure directly from the output generated by the SEARCH 1command. /FORMAT has the following restrictions :

    G
  1. /FORMAT is only valid with the /OUTPUT qualifier, and can not be 7 used together with the /FULL or the /SORT qualifiers.@
  2. The format string used must contain the !AS directive (in D uppercase). The file found will be substituted at the !AS location


Example:

HDFU> SEARCH/OUTP=DEL.COM/FORMAT="$DELETE/CONF !AS"/FILE=*.LOG mydisk 


F

10.5 UIC and identifier processing

@Version V2.4 introduced an improved handling of UIC's. Previous Gversions of DFU only accepted a numeric UIC in the /OWNER qaulifier or Fan identifier in the /IDENT qualifier. V2.4 and later now accepts all Cvalid UIC and identifier formats (numeric and alphanumeric) in the A/OWNER and /IDENT qualifiers. Technically there is no longer any Fdifference between these two qualifiers, but they will be left in for compatibility reasons.
'

SEARCH



$Fast file search through INDEXF.SYS.



Format



SEARCH device[:]




PARAMETERS



device[:]

ADevice to be searched. You may also specify a logical devicename.



DESCRIPTION

EThe SEARCH command is used for quick disk-wide searches for specific Ffiles. The qualifiers describe the file attributes used as the search Hcriteria. You can combine almost all of the possible qualifiers, unless otherwise specified. Eg.:
CDFU> SEARCH DISK1/SIZE=MIN=10/OWN=[1,4]/CREATED=SINCE=YESTERDAY 


Gis a valid command. Note that qualifiers will be used in a logical AND @manner, that is, SEARCH will only display files which match all !qualifiers and options specified.




QUALIFIERS

/ACCESS=option(,option)

FThe /ACCESS qualifier is used to search files depending on their last 6ACCESS date (VMS 7.2 only). The possible options are :



/ACE=identifier

GSearch for files which have an ACE containing the specific identifier. EOnly ACE's of the format "IDENTIFIER=<identifier>,..." will be searched.

/ALLOCATED

HDefault, SEARCH will use the actual file size. The /ALLOCATED qualifier Dforces SEARCH to use the allocated filesize. This qualifier is only )meaningfull if you combine it with /SIZE.

/APPEND=filename

AThis qualifier redirects the output to be appended to an already Fexisting file. If the output file does not exists it will be created. ,You can use /APPEND or /OUTPUT but not both.#

/ATTRIBUTE=option(,option)

DThe /ATTRIBUTE qualifier is used to search files depending on their Elast attribute change date (VMS 7.2 only). The possible options are :

/BACKUP=option(,option)

HThe /BACKUP qualifier is used to search files depending on their backup date. The possible options are :

HThe NONE option gives files which don't have a backup date recorded.The Bother 2 options can be used to get files which have a backup date Dbefore or after a specific date. The BEFORE and SINCE option can be combined in one command.!

/BAKFID=backlink-file-id

HYou can use this qualifier to look for a file with a specific backlink. FOnly the first part of the file id must be specified, that is, if the Dfile id is (x,y,z) you must specify 'x' as the file id. You can use Bthis qualifier to get files from a specific directory. If you use A/BAKFID=0 you will get files not belonging to a directory (often temporary files).)

/CHARACTERISTIC=(char1,char2...)

7This qualifier is used to get files with specific file Bcharacteristics.The characteristics can have the following values: 




/Previous& | Next/ | Contents