Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

RM(1)

NAME

rm, rmdir  − remove (unlink) directories or files

USAGE

rm [ −fri ] file ... 
rmdir dir ... 

DESCRIPTION

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.  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 Interactively ask whether to delete each file.  With an −r option, ask whether to examine each directory. 

RELATED INFORMATION

unlink (2). 

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