RM(1) UNIX Reference Manual RM(1)
r
\brm
\bm - Remove directory entries.
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
r
\brm
\bm [-
\b-f
\bf | -
\b-i
\bi] [-
\b-R
\bRr
\br] _
\bf_
\bi_
\bl_
\be ...
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
The rm utility removes the directory entry specified by each file argu-
The following options are available:
-
\b-f
\bf Force each specified directory entry to be removed without
prompting for confirmation, regardless of the permissions of the
file to which it refers. Suppress diagnostic messages regarding
-
\b-i
\bi Write a prompt to the standard error output requesting confirma-
tion before removing each existing directory entry, regardless of
the permissions of the file to which it refers.
-
\b-R
\bR Permit directories to be removed (recursively).
-
\b-r
\br Equivalent to -
\b-R
\bR.
The following argument is available:
_
\bf_
\bi_
\bl_
\be A pathname of a directory entry to be removed.
The r
\brm
\bm utility exits with one of the following values:
0 All the named directory entries were removed.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
S
\bST
\bTA
\bAN
\bND
\bDA
\bAR
\bRD
\bDS
\bS
The r
\brm
\bm function is expected to be POSIX 1003.2 compatible.