RM(1)
๐ NAME ๐
okay bestie, welcome to rm(1) โ the User Commands girlies' manual page. say hi to rm ๐ โ short for remove files or directories. she's iconic, she's powerful, she does NOT do second chances. โจ
โจ SYNOPSIS โจ
rm [OPTION]... [FILE]...
like. that's it. that's the whole vibe. options first, files after, go off. ๐
๐ฆ DESCRIPTION ๐ฆ
this manual page documents the GNU version of rm, just so we're clear. rm removes each specified file. and by default? it does NOT remove directories. nope. not happening. she said no. ๐
โโ๏ธ
okay so here's the prompting tea, and it matters:
- if you pass
-Ior--interactive=once, AND there are more than three files or you gave-r,-R, or--recursive, thenrmprompts you asking whether to proceed with the entire operation. if your answer isn't affirmative, the entire command is aborted. whole thing. gone. nothing happens. ๐ - otherwise, if a file is unwritable, standard input is a terminal, and
-for--forceis not given, or you gave-ior--interactive=always, thenrmprompts you for whether to remove the file. if your response isn't affirmative, the file is skipped. ๐
๐ OPTIONS ๐
Remove (unlink) the FILE(s). ๐ซ
-f,--forceโ ignore nonexistent files and arguments, never prompt. she's not asking. she's just doing it. ๐ฅ-iโ prompt before every single removal. every. one. yes bestie, all of them. ๐ซถ-Iโ prompt once before removing more than three files, or when removing recursively; less intrusive than-i, while still giving protection against most mistakes. the chill middle ground. ๐ธ--interactive[=WHEN]โ prompt according to WHEN:never,once(-I), oralways(-i); without WHEN, prompt always. โจ--one-file-systemโ when removing a hierarchy recursively, skip any directory that is on a file system different from that of the corresponding command line argument. stay in your lane, mount point. ๐ง--no-preserve-rootโ do not treat/specially. girl. GIRL. please. ๐ญ--preserve-root[=all]โ do not remove/(this is the default); withall, reject any command line argument on a separate device from its parent. ๐ก๏ธ-r,-R,--recursiveโ remove directories and their contents recursively. the big one. the whole tree. ๐ณ-d,--dirโ remove empty directories. only empty ones, she's picky like that. ๐-v,--verboseโ explain what is being done. narration on. ๐ฃ๏ธ--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 with all of its contents. ๐ง
any attempt to remove a file whose last file name component is . or .. is rejected with a diagnostic. don't try it. she knows. ๐
to remove a file whose name starts with a -, for example -foo, use one of these commands:
rm -- -foo
rm ./-foo
โ ๏ธ okay important one, listen up: if you usermto 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 unrecoverable, consider usingshred(1).rmis not a shredder, bestie, she's just a deleter. ๐๏ธ๐
๐ AUTHOR ๐
Written by Paul Rubin, David MacKenzie, Richard M. Stallman, and Jim Meyering. legends fr fr. ๐ซกโจ
๐ REPORTING BUGS ๐
- Report bugs to: <bug-coreutils@gnu.org>. ๐ฌ
- Report any translation bugs to: <https://translationproject.org/team/>. ๐
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/> ๐
- General help using GNU software: <https://www.gnu.org/gethelp/> ๐
โ๏ธ COPYRIGHT โ๏ธ
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://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. no cap, that's the actual legal text, don't come for her. ๐
๐ SEE ALSO ๐
Full documentation <https://www.gnu.org/software/coreutils/rm> or available locally via: info '(coreutils) rm invocation' ๐
that's the whole page bestie, slay. this was GNU coreutils 9.12, dated September 2026, and it lives at the bottom of the page as RM(1) โ mwah, go forth and delete responsibly. ๐โจ๐๐ฆ
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms