RM(1)
πΈ RM(1) β the remove page, bestie πΈ
okay so this is rm, from the General Commands Manual family, and she is lowkey the most powerful girl in your terminal π
read carefully, because she does not do second chances (we'll get to that in EXTRA, and yes it's giving ominous).
β¨ NAME β¨
rm β remove (unlink) the FILE(s) ποΈβ¨
π SYNOPSIS π
rm [OPTION]... FILE...
π DESCRIPTION π
Remove (unlink) the FILE(s). that's it. that's the whole vibe. gone. deleted. bye bestie ππ
π₯ OPTIONS π₯
so many flags, all iconic, let's go:
-f,--forceβ ignore nonexistent files and arguments, and never prompt. she's fearless, she's unbothered π-iβ prompt before every removal. she's asking permission every single time, very polite, very "are you sure bestie?"-Iβ prompt once before removing more than three files, or when removing recursively. it's less intrusive than-i, while still giving some protection against most mistakes π«Ά--interactive[=<WHEN>]β prompt according to WHEN:never,once(-I), oralways(-i). without WHEN, it prompts always- possible values β¨:
alwaysoncenever
- possible values β¨:
--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. ngl, this one is (NOT IMPLEMENTED) π she's a concept, not a promise--no-preserve-rootβ do not treat/specially. π¨ bestie. no. absolutely unhinged behavior, do not--preserve-root[=<all>]β do not remove/(this is the default, thank god π); withall, reject any command line argument on a separate device from its parent- possible values:
all
- possible values:
-r,--recursiveβ remove directories and their contents recursively. she goes all the way down, main character energy π-d,--dirβ remove empty directories. only the empty ones, she's picky π-v,--verboseβ explain what is being done. she narrates her own life, honestly relatable π¦-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, obvi π
π EXTRA π
okay important stuff, no cap:
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 π
so you wanna remove a file whose name starts with a -, like -foo? the shell is gonna be weird about it, so use one of these commands:
rm -- -foo
rm ./-foo
and now the serious one, listen up π«Ά: 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. so like... she's gone, but not forever gone π. for greater assurance that the contents are truly unrecoverable, consider using shred.
β οΈ fr fr bestie: rm is not a shredder and not a trash can. no undo button, no take-backs. double-check your paths before you hit enter π
π VERSION π
v(uutils coreutils) 0.12.0
and that's the page!! π mwah, stay safe out there, and remember: rm -rf / is not a personality trait πβ¨
β signed, sealed, delivered: uutils coreutils 0.12.0, dated 2026-09-17 πππ¦
π¦ where this page comes from
- arch rolling: uutils-coreutils 0.12.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms