Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rm(1)

unlink(2)

rmdir(2)

RMDIR(1)                             BSD                              RMDIR(1)



NAME
     rmdir, rm  - remove (unlink) directories or files

SYNOPSIS
     rmdir dir ...

     rm [ -f ] [ -r ] [ -i ] [ - ] file ...

DESCRIPTION
     The rmdir command removes entries for the named directories, which must
     be empty.

     rm removes the entries for one or more files from a directory.  If an
     entry was the last link to the file, the file is destroyed.  Removal of 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.

OPTIONS
     -f        Suppress questions and don't report errors.

     -r        Recursively delete the entire contents of the specified
               directory, and the directory itself.

     -i        Interactive. Ask whether to delete each file, and, when used
               with -r, whether to examine each directory.

     -         The null option; indicates that all the arguments following it
               are to be treated as filenames.  This option allows the
               specification of filenames starting with a minus (-).

SEE ALSO
     rm(1), unlink(2), rmdir(2)

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