
Other AI slipups can be devastating, and if you cruise around the Claude, ChatGPT, or Gemini subreddits long enough, you’ll find tales of woe like this one, often caused by a simple but very powerful command:
rm -rf
That little command strikes fear — or at least, it should strike fear — into the heart of any Linux user. And if you’re using Claude Code or Codex for vibe coding, make no mistake: You’re a Linux user.
Welcome to another edition of Prompt Mode, your weekly AI newsletter.
I’m your host, Ben Patterson. Each week on Prompt Mode, I’ll be serving up analysis of the AI trends that matter to everyday users like you and me. Stay tuned for practical AI tips, hands-on experiences with the latest AI tools, and–you guessed it–prompts to help you get the most out of your AI assistants.
Thanks for reading, and if you like what you see, just sign up right here.
The “rm” stands for “remove,” the standard Linux command for deleting a file. On its own, “rm” can only do so much damage, but when combined with the “-r” (for “recursive”) and “-f” (for “force”) arguments, “rm -rf” can lay waste to a hard drive, nuking a directory, its files, and its subdirectories in seconds.
What makes “rm -rf” really scary is when you – or Claude – use it anywhere in the vicinity of your home directory, as in:
“rm -rf /Users/benpatt/deleteme”
That command should just wipe the “deleteme” subdirectory in my (example) home directory, but were I to accidentally leave out the “/delememe” part, boom! All my home files and folders, gone forever.
An even scarier version of the command is: