STScI Logo

protect system


NAME · USAGE · PARAMETERS · DESCRIPTION · EXAMPLES · SEE_ALSO

NAME

protect -- protect files from deletion

USAGE

protect files

PARAMETERS

files
A template specifying the file or files to be protected.

DESCRIPTION

Protect asserts protection from deletion for the specified files. A protected file can be deleted only by first "unprotecting" it. File protection is preserved when a file is copied or renamed, even when copied or renamed to a remote network node, but may be lost when a file is backed up on tape and later restored (depending upon what utility one uses). Note that imagefiles are automatically protected to prevent accidental deletion of the header file, leaving a "zombie" pixel file somewhere on disk.

EXAMPLES

1. Protect the file "paper.ms" from deletion, accidental or otherwise.

cl> protect paper.ms

2. Protect all the ".ms" files from deletion.

cl> protect *.ms

SEE ALSO

unprotect, delete


Source Code · Search Form · STSDAS