Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ del(1) — AIX/RT 2.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rmdir

rm

del

PURPOSE

     Deletes files if the request is confirmed.

SYNOPSIS
     del [ - ] name ...


DESCRIPTION

     The del command displays the list of specified file names
     and asks you to confirm  your request to delete the group
     of files.  To answer "yes"  (delete the files), press the
     Enter key or enter a  line beginning with "y".  Any other
     response specifies "no" (do not delete the files).

     The del command does not delete directories.  See "rmdir"
     for information about deleting directories.

     Warning:   The  del   command  ignores  file  protection,
     allowing the owner of a  file to delete a write-protected
     file.  However,  to delete  a file,  you must  have write
     permission in the directory that the file exists in.

     Since pressing  the Enter  key by itself  is the  same as
     answering  "yes," be  careful not  to delete  files acci-
     dentally.

FLAG

     -  Requests confirmation  for each specified  file rather
        than for the entire group.

EXAMPLES

     1.  To delete a file:

           del  chap1.bak

         This displays the message:

           delete chap1.bak? (y)

         to ask for  confirmation before deleting "chap1.bak".
         The "(y)"  reminds you to  press the Enter key  or to
         enter "y" to answer "yes."
     2.  To use del with pattern-matching characters:

           del  *.bak

         Before  passing the  command line  to del,  the shell
         replaces the  pattern "*.bak"  with the names  of all
         the  files in  the  current directory  that end  with
         ".bak".  (This is known as file-name expansion.)  del

         asks for confirmation before deleting them all at one
         time.
     3.  To interactively select files to be deleted:

           del  -  *

         This displays  the name of  each file in  the current
         directory one at a time, allowing you to select which
         ones to delete.

RELATED INFORMATION

     The following commands:  "rmdir" and "rm."

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026