You are on page 1of 2
RM(1) User Commands RM(1) NAME im -remove files or directories SYNOPSIS. 1m (OPTION... FILE. DESCRIPTION This manual page documents the GNU version of rm. rm removes each specified file. By default, it does not remove directories. ithe -Lor—interactive=once option is given, and there are more than three files or the -r, -R, or—recursive are given, then rm prompts tho user for whether to proceed with the entite operation. 1 ne response is nat affirmative, the entire command is aborted Qtherwise, If a file is unwritable, standard inputis.a terminal, and the -for—force option is not given, or the -i or —interac? tive=always. option is given, rm prompts the user for whether to remove the file, Ifthe response is not affirmative, the file is-skipped OPTIONS. Remove (unlink) the FILE(s) +1, force ignore nonexistent fles.and arguments, never prompt -|_ promptbefore every removal -| promptonce betore removing more than three files, or when removing recursively. Less intrusive than -i, while stil giv? ing protection against most mistakes ~Interactive|=WHEN] prompt according to WHEN: never, once (-), or always (1) ithout WHEN, prompt always ~one-file-system when removing a hierarchy recursively, skip any directory that is ona file systém different from that of the corresponding command line argument no-preserve-root fo not treat ' specially. ~preserve-root do not remove"? (default) ot, -R, -recursive remove directories and their contents recursively d,~dir remove emply directories ~v, -verbose explain what Is being done —help display this help and exit —version output version information and exit By defaul, rm does notramoye directories, Use the recursive (ror Rloplion'o remove each Iisted directory oo, along with all of contents. To remove a file whose name starts with a one of these commands: for example ‘foo’, use rm — foo rm J-00 Note that f 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, con? sider using shred, AUTHOR Written by Paul Rubin, David MacKenzie, Richard M. Stallman, and Jim Meyering, REPORTING BUGS Report rm bugs to bug-coreutils@gnu.or GNU eoreutis nome > page: “chtp wu Ghu org/sofwarefooreulls’> General help using GNU software: Report rm translation bugs to ‘COPYRIGHT Copyright © 2013 Free Sofware Foundation, Ino, License GPLva+: GNU GPL version 3 or later . This Is fee sofware: you are ree fo change and redistibute There is NO WARRANTY, to the extent permitted by law. SEE ALSO unlink(1), unlink(2), chattr(1), shred(1) The full documentation for rm is maintained as.a Texinfo manual. If the info and rm programs are properly installed at your site, the com? mand info coreutils ‘rm invocation’ should give you access to the complete manual. GNU coreutils 8.21 January 2015 RM(1)

You might also like