rm -i file.txt

Category: File Operations

rm -i file.txt

Remove interactively, prompt before each removal

Asks 'are you sure?' before deleting each file. -i means 'interactive' — useful when deleting multiple files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.