rm Command Generator
Generate rm commands to remove files or directories
Getting Started with rm
## What is rm?
The `rm` command removes files or directories. By default it does not remove directories, and it does not prompt before deleting a file, so use it carefully.
## How to Use
1. **Set Options** (recommended): Add `-r` for directories or `-i` to confirm each deletion. 2. **Specify File**: Enter the file or directory path to remove. 3. **Copy & Run**: Copy the generated command into your terminal.
Common Options
### `-r` Recursive Remove directories and their contents recursively. Required to delete a directory.
### `-f` Force Ignore nonexistent files and arguments, and never prompt. Useful in scripts.
### `-i` Interactive Prompt before every removal. The safest mode for interactive use.
### `-v` Verbose Explain what is being done (prints each removed path).
▶How do I remove a non-empty directory?
▶How do I make rm always prompt?
If this tool has been helpful to you, consider buying me a coffee.
Buy me a coffee