rm - remove files or directories


   rm [OPTION]... [FILE]...


   This  manual  page  documents  the  GNU version of rm.  rm removes each
   specified file.  By default, it does not remove directories.

   If the -I or --interactive=once option is given,  and  there  are  more
   than  three  files  or  the  -r,  -R, or --recursive are given, then rm
   prompts the user for whether to proceed with the entire operation.   If
   the response is not affirmative, the entire command is aborted.

   Otherwise,  if  a file is unwritable, standard input is a terminal, and
   the  -f  or   --force   option   is   not   given,   or   the   -i   or
   --interactive=always  option  is given, rm prompts the user for whether
   to remove the file.  If the response is not affirmative,  the  file  is


   Remove (unlink) the FILE(s).

   -f, --force
          ignore nonexistent files and arguments, never prompt

   -i     prompt before every removal

   -I     prompt  once  before  removing  more  than  three files, or when
          removing recursively; less intrusive than -i, while still giving
          protection against most mistakes

          prompt  according  to  WHEN:  never,  once (-I), or always (-i);
          without WHEN, prompt always

          when removing a hierarchy recursively, skip any  directory  that
          is  on  a  file  system different from that of the corresponding
          command line argument

          do not treat '/' specially

          do not remove '/' (default)

   -r, -R, --recursive
          remove directories and their contents recursively

   -d, --dir
          remove empty directories

   -v, --verbose
          explain what is being done

   --help display this help and exit

          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 with all of its

   To remove a file whose name starts with a '-', for example '-foo',  use
   one of these commands:

          rm -- -foo

          rm ./-foo

   Note  that  if  you  use  rm  to remove a file, it might be possible to
   recover some of its contents, given sufficient expertise  and/or  time.
   For  greater  assurance  that  the  contents  are  truly unrecoverable,
   consider using shred.


   Written by Paul Rubin, David MacKenzie, Richard M.  Stallman,  and  Jim


   GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
   Report rm translation bugs to <http://translationproject.org/team/>


   Copyright    2016  Free Software Foundation, Inc.  License GPLv3+: GNU
   GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
   This is free software: you are free  to  change  and  redistribute  it.
   There is NO WARRANTY, to the extent permitted by law.


   unlink(1), unlink(2), chattr(1), shred(1)

   Full documentation at: <http://www.gnu.org/software/coreutils/rm>
   or available locally via: info '(coreutils) rm invocation'

More Linux Commands

xmlgraphics-fop(1) - Formatter for Printing XSLT Processed X
Classname: org.apache.fop.cli.Main xmlgraphicsfop [fo | xml] infile [xsl file] [awt | pdf | mif | rtf | tiff | png | pcl | ps | txt | at [mime].........

net-snmp-config(1) - returns information about installed net
The net-snmp-config shell script is designed to retrieve the configuration information about the libraries and binaries dealing with the Simple Network Manageme

Tk_CreateGenericHandler(3) - associate procedure callback wi
Tk_CreateGenericHandler arranges for proc to be invoked in the future whenever any X event occurs. This mechanism is not intended for dispatching X events on wi

macpack(1) - Macintosh OS X Packager for managed gui assembl
macpack is a tool used to package managed assemblies (like System.Windows.Forms or Cocoa#) that require gui availability for deployment on Mac OS X. macpack wil

emacsclient(1) - tells a running Emacs to visit a file......
This manual page documents briefly the emacsclient command. Full documentation is available in the GNU Info format; see below. This manual page was originally w

Tk_GetJoinStyle(3) - translate between strings and join styl
Tk_GetJoinStyle places in *joinPtr the X join style corresponding to string, which will be one of JoinBevel, JoinMiter, or JoinRound. Join styles are typically

glxinfo(1x) - display info about a GLX extension and OpenGL
glxinfo lists information about the GLX extension, OpenGL capable visuals, and the OpenGL renderer on an X server. The GLX and renderer info includes the versio

getopt(3) - Parse command-line options - Linux manual page
getopt.3 - The getopt() function parses the command-line arguments. Its arguments argc and argv are the argument count and array as passed to the main() functio

ldap_dup(3) - Duplicate and destroy LDAP session handles....
ldap_dup() duplicates an existing LDAP (LDAP *) session handle. The new session handle may be used concurrently with the original session handle. In a threaded

fbdevhw(4) - os-specific submodule for framebuffer device ac
fbdevhw provides functions for talking to a framebuffer device. It is os-specific. It is a submodule used by other video drivers. A fbdevhw module is currently

SDL_Palette(3) - Color palette for 8-bit pixel formats......
Each pixel in an 8-bit surface is an index into the colors field of the SDL_Palette structure store in SDL_PixelFormat. A SDL_Palette should never need to be cr

pcre16_free_study(3) Perl-compatible regular expressions....
This function is used to free the memory used for the data generated by a call to pcre[16|32]_study() when it is no longer needed. The argument must be the resu

We can't live, work or learn in freedom unless the software we use is free.