Rm command:Delete a file or directory
First man RM
Name
Rm-Remove files or directories
Synopsis
Rm [Option]... file...
Description
This manual page documents the GNU version of RM. rm removes each specified file. By default, it does not remove directories.
If a file is unwritable, the standard input is a tty, and the-f or -- force option is not given, RM prompts the user for whether
Remove the file. If the response is not affirmative, the file is skipped.
Options
Remove (unlink) the file (s ).
-F, -- force
Ignore nonexistent files, never prompt
-I, -- interactive
Prompt before any removal
-- No-preserve-root do not treat '/'specially (the default)
-- Preserve-Root
Fail to operate recursively on '/'
-R,-R, -- Recursive
Remove directories and their contents recursively
-V, -- verbose
Explain what is being done
-- Help display this help and exit
-- Version
Output version information and exit
By default, RM does not remove directories. Use the -- Recursive (-R or-R) option to remove each listed directory, too, along
All of its contents.
To remove a file whose name starts with a'-', for example'-foo', use one of these commands:
Rm ---foo
Rm./-foo
Rm-RF jaxb-xjc.jar
Rm-rfv jboss-aop-asintegration-core.jar
Deleted jboss-aop-asintegration-core.ja
Rm-rfvi jboss-aop-asintegration-jmx.jar
RM: Do you want to delete the general file "jboss-aop-asintegration-jmx.jar "? Y
Deleted jboss-aop-asintegration-jmx.jar"
Rm-RFI jboss-aop-asintegration-mc.jar
RM: Do you want to delete the general file "jboss-aop-asintegration-mc.jar "? Y