Tool Open source
undo is a Linux shell tool that reverts the filesystem changes made by the last shell command without rolling back unrelated work. It uses shell hooks for Bash, Zsh, and Fish to arm an LD_PRELOAD library around each command; the library intercepts destructive filesystem operations, including deletion, renaming, writes, directory creation, and permission changes, saves affected files in a per-command session, and records the changes in a journal.
The tool replays the journal in reverse to restore deleted or overwritten files, reverse renames, remove accidental creations, and restore directory modes. Deleted files are preserved with hard links, and the session store is made of inspectable plain files. It provides undo and redo operations, keeps a configurable set of sessions within a configurable storage budget, requires no daemon or root privileges, and supports a purge operation for clearing the store.
1 use taken from transcripts — each links to the moment in the video.
A shell tool that reverts the last command's filesystem changes without rolling back unrelated work. It journals file operations and permission changes, preserves deleted files, and supports inspection, selective restoration, and redo.
1 in the library.