rm [-dfiPRrvW] file\…
rm * deletes all the files in the current directory.
Current and parrent directoy cannot be removed by specifing
unlink, accepts only one non-directory argument and options.
Exits 0 if all of the named files or file hierarchies were removed, or with
all of the existing files or file hierarchies were removed.
If the permissions do not permit writing, and the STDIN is a terminal, the user is prompted ,on the STDERR, for confirmation.
-- to stop option list and allows the removal of names begining with (`-'). For
rm -- -filename>Or by using a path reference. For example:
rm /home/user/-filename rm ./-filenameSEE rmdir(1), undelete(2), unlink(2), fts(3), getopt(3), symlink(7) The rm command is almost IEEE Std 1003.2 ("POSIX.2") compatible, except that POSIX requires rm to act like rmdir(1) when the file specified is a directory. This implementation requires the -d option if such behavior is desired. This follows the historical behavior of rm with respect to directories.