rm


rm

Purpose

Delete one or more files.

Syntax

rm [options] files

Options

-f removes files without prompting.

-i prompts before removing a file.

-r recursively removes files in all subdirectories, including the directories.

-v displays the name of each file before removing it.

Description

The rm command deletes the specified files. To remove a file, you must have write permission to the directory that contains the file.