Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

No—Claude Code’s /rewind is not a general undo for shell commands. It can return eligible conversation or code changes to an earlier checkpoint, but Bash-command side effects such as a file move are outside the documented checkpointing coverage. Don’t count on it to recover files removed with rm; check independent copies such as Git history or a backup instead.

What /rewind can restore—and what it cannot

Anthropic’s Claude Code cheatsheet describes /rewind as returning the conversation and/or code to an earlier checkpoint. Anthropic’s command reference gives the same high-level description and points users to checkpointing documentation.

That checkpoint boundary matters. A Claude Code repository issue quotes the checkpointing documentation as saying Bash command changes are not tracked, using mv old.txt new.txt as an example of a change that cannot be undone through rewind. A shell command can change the filesystem outside the code edits covered by Claude Code’s checkpoints. So if Bash deletes, moves, or otherwise alters a file, invoking /rewind is not a reliable way to reverse that side effect.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This does not mean a deleted file is necessarily gone forever. It means /rewind is not a universal recovery mechanism: another copy may exist in version control, a backup, a filesystem snapshot, or another recovery tool.

#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

What to do after Bash deletes or moves a file

  1. Stop making changes to the affected storage. If you may need file-recovery software or a filesystem snapshot, further writes can complicate recovery. The sources cited here do not establish a universal recovery procedure, so avoid treating any one sequence of steps as guaranteed.
  2. Check independent copies. Look for the file in your Git history, another branch, a backup, or a filesystem snapshot. These are separate recovery sources; they are not restored by Claude Code’s conversation checkpoint.
  3. Use the appropriate recovery path. Restore from the copy that actually contains the file. If no independent copy is available, the documentation cited here does not promise that /rewind or any particular tool can recover it.

How to open the rewind menu

Anthropic’s cheatsheet lists pressing Esc twice as a route to the rewind/checkpoint menu. You can also enter /rewind. These controls let you access the checkpoint feature; they do not expand its coverage to Bash changes.

Check whether file checkpointing is disabled

Claude Code’s environment-variable reference says that setting CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING disables file checkpointing, preventing /rewind from restoring code changes. This is a conditional setting, not evidence that checkpointing is disabled by default. Even when file checkpointing is available, it does not make Bash side effects reversible through rewind.

Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Prevent the next loss with safeguards matched to the risk

  • Use version control. Commit or otherwise preserve important work so repository history provides a recovery point independent of Claude Code checkpoints.
  • Keep a separate backup. A backup can retain files outside the working copy and repository; confirm that it covers the files and locations you care about.
  • Consider command-level snapshots for recurring shell risk. Some shell tools describe taking snapshots around commands and undoing side effects such as rm or mv. For example, the bashback project page describes that kind of command-level undo. That is the project publisher’s description, not an independently verified guarantee, and it is a different safeguard from Claude Code checkpointing.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Why an unexpected file reappearance is not a recovery promise

A Claude Code issue reports one case in which a tracked file reportedly reappeared after a Bash mv. The report is specific to its author’s environment and describes the behavior as unexpected; the issue also quotes the rule that Bash changes are not tracked. Treat it as a report of surprising file-history behavior, not as a supported method for undoing shell commands or evidence that /rewind will generally restore Bash-deleted files.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99
Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.
Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.