oops is in beta. Report any issues on GitHub.

Terminal undo guides

Practical recovery and prevention guides for destructive terminal commands, local backups, and AI coding agent safety.

How to undo rm in the terminal

What to try immediately after rm, why recovery is unreliable, and how to make future deletes reversible.

How to undo rm -rf

What rm -rf does, what backups can save, and how oops backs up directory trees before deletion.

Recover a deleted file from the terminal

A clear decision tree for git, backups, forensic tools, and prevention after terminal deletion.

How to undo git reset --hard

Use reflog for commits, understand the uncommitted-work gap, and prevent reset damage with oops.

How to undo git clean

Recover from git clean -fd, protect untracked files, and preview destructive clean commands.

A safer rm alternative for developers

Compare aliases, trash commands, and shell-hook backups that keep normal terminal workflows intact.

Terminal undo on Mac

Why macOS Terminal deletes bypass Trash and how to add local undo for zsh, bash, and fish.

Terminal undo on Linux

What Linux shells can and cannot undo, plus background cleanup and local backup behavior.

Protect AI coding agents from rm -rf mistakes

Use shell-level backups when Claude Code, Cursor, Aider, Codex, or another agent runs commands.

Trash for the command line

When command-line trash helps, where it falls short, and how oops handles more than rm.

How to undo destructive terminal commands

The overview guide for rm, git reset, mv overwrites, sed -i, and shell-hook backups.

How to protect your files from AI coding agents

Why agent command execution needs a filesystem safety net and what oops catches.