Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rm(1) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



RM(1)           DOMAIN/IX Reference Manual (SYS5)           RM(1)



NAME
     rm, rmdir  - remove files or directories

USAGE
     rm [ -fri ] file ...
     rmdir dir ...

DESCRIPTION
     Rm removes the entries for one or more files from a direc-
     tory.  If an entry was the last link to the file, the file
     is destroyed.  Removing a file requires write permission in
     its directory, but neither read nor write permission on the
     file itself.

     If a file has no write permission and the standard input is
     a terminal, its permissions are printed and a line is read
     from the standard input.  If that line begins with y, the
     file is deleted; otherwise, the file remains.  No questions
     are asked if the standard input is not a terminal.

     Rmdir removes entries for the named directories, which must
     be empty.

OPTIONS
     -f        Suppress questions concerning removals.

     -r        Recursively delete the entire contents of the
               specified directory, and the directory itself,
               without printing any error comments.

     -i        Use interactive mode.  Ask whether or not to
               delete each file.  If this option is used with the
               -r option, rm also asks whether or not to examine
               each directory.

CAUTIONS
     It is forbidden to remove the file ``..'' merely to avoid
     the antisocial consequences of inadvertently doing something
     such as:

          rm -r .*

DIAGNOSTICS
     Generally self-explanatory.

RELATED INFORMATION
     unlink (2).








Printed 6/10/85                                              RM-1



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