tty.help
Appearance

Display preferences are saved in this browser.

rmRemove files

Remove named filesystem entries. -r descends into directories; -f suppresses some prompts and errors.

Label
Destructive
Edited
2026-11-07
References
1 official

Example

rm ./scratch.txt
  1. rmCommand nameAliases, shell functions, wrappers and PATH can change which program runs.
  2. ./scratch.txtArgumentsFlags and operands as written. Quoting and expansion can change them before the program starts.
Illustrative syntax only. Do not run this without confirming the target and environment.

Things to check

Usually bypasses the desktop Trash. Wildcards and unexpected variables can greatly expand the target; -rf is not a safety check.

Before you run it

Confirm the exact expanded targets and a usable backup before removal.

Ask your agent

“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”

Context is part of the command

A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.

Explore a full command