rm(1)
πΈ rm(1) β the "oops I deleted my whole life" manual, bestie edition πΈ
General Commands Manual β¨ this is rm, section 1, and yes she's that girl.
π NAME π
rm β remove (unlink) the FILE(s) π
Like, gone gone. Poof. Not in the trash, not in "recently deleted", just gone.
β¨ SYNOPSIS β¨
rm [-f|--force] [-i ] [-I ] [--interactive] [--one-file-system]
[--no-preserve-root] [--preserve-root] [-r|--recursive] [-d|--dir]
[-v|--verbose] [-g|--progress] [-h|--help] [-V|--version] [files]
π¦ DESCRIPTION π¦
Remove (unlink) the FILE(s) π«Ά
That's it. That's the whole vibe. She takes files and she un-alives them. No cap.
π OPTIONS π
okay so here's the whole menu, bestie, don't skip any of it, every single one matters:
-f,--forceβ ignore nonexistent files and arguments, and never prompt. She doesn't want to hear it. She's not asking. π₯-iβ prompt before every removal. Every single one. Yes, even that one. Yes, even the one you already said yes to. π-Iβ prompt once before removing more than three files, or when removing recursively. Less intrusive than-i, while still giving some protection against most mistakes. This is the reasonable one, lowkey the main character of the flags. π--interactive[=<WHEN>]β prompt according to WHEN:never,once(that's-I), oralways(that's-i). Without WHEN, prompts always.
Possible values:
alwaysoncenever
--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 (NOT IMPLEMENTED). Yeah bestie, it's literally not implemented, don't come for me π--no-preserve-rootβ do not treat'/'specially. You're on your own with this one, fr fr. π--preserve-rootβ do not remove'/'(this is the default). Protection era. π‘οΈ-r,--recursiveβ remove directories and their contents recursively. The big one. The one that eats folders whole. π-d,--dirβ remove empty directories. Only the empty ones, she's not messy like that.-v,--verboseβ explain what is being done. She'll narrate her own crimes. π-g,--progressβ display a progress bar. Note: this feature is not supported by GNU coreutils. β-h,--helpβ Print help-V,--versionβ Print version[files]β the files. The victims. The little guys. π₯Ί
π EXTRA π
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.
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 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 truly unrecoverable, consider usingshred. So likeβ¦ she's not a paper shredder, bestie. She's a girl with a delete key and zero regrets. π§
π VERSION π
v(uutils coreutils) 0.7.0
okay that's the whole page, ily, go delete responsibly and maybe back up first, mwah π
signing off from the footer: rm (uutils coreutils) 0.7.0, page rm(1), from the uutils coreutils era β periodt. πβ¨π¦
π¦ where this page comes from
- epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
- epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
- fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms