How to Undo a File Move on a Mac (and Find a File You Moved by Mistake)

A file moved by mistake is usually recoverable: Command+Z undoes the last move, and Recents, Spotlight, the Trash and Time Machine cover the rest. The right method depends on how long ago the move happened.

How do you undo a file move on a Mac?

Press Command+Z in Finder straight after the move, or choose Edit, then Undo Move. Finder undoes the last file operation, and repeated presses step back through earlier operations in the same session.

SituationTry this firstIf that fails
Moved a moment agoCommand+Z in FinderRecents or Spotlight
Moved earlier todayRecents in the Finder sidebarSpotlight or Finder search
Deleted instead of movedTrash, then File, Put BackTime Machine
Finder restarted or Mac rebootedSpotlight searchTime Machine
File lived in iCloud DriveRecently Deleted on iCloud.comTime Machine

How do you find a file you moved by mistake?

Click Recents in the Finder sidebar, press Command+Space and type the file name, or press Command+F in a Finder window and search. A move does not change the modified date, so sorting by date helps.

Find a moved file

  1. Click Recents in the Finder sidebar.
  2. Press Command+Space, type the file name and read the path shown.
  3. In a Finder window, press Command+F, search the name and filter by Last Modified.
  4. Select the result and press Command+I to see where it is stored.

How do you recover a file from the Trash?

Open the Trash, select the file and choose File, then Put Back, or press Command+Delete. The file returns to the folder it came from, if that folder still exists.

How do you restore a moved or deleted file from Time Machine?

Open the folder where the file used to be, open Time Machine, step back to a time before the move and restore it. Restored items return to their original location.

Apple’s guide Restore files on Mac describes the process, and Spotlight can also search Time Machine backups. Keep Time Machine switched on, since it is the last line of defence.

How do you recover a file from iCloud Drive?

Files deleted from iCloud Drive appear under Recently Deleted on iCloud.com. Apple says they are removed from there after 30 days, so recover them promptly.

Apple’s If you’re missing files in iCloud Drive page covers the steps. Sign in at iCloud.com, open Drive, choose Recently Deleted and recover the file.

How long does Command+Z keep working in Finder?

Command+Z reverses recent actions in the current session, but that history is usually gone after Finder relaunches or the Mac restarts. For later mistakes, use search, the Trash or Time Machine.

How do you stop moving files by mistake?

Put both folders side by side in separate windows or tabs, and use Command+C then Option+Command+V so a move happens only on the second shortcut. Keep Time Machine on.

Finder Edit menu with Option held after copying a file: Cut stays greyed out and Move Item Here appears with the shortcut Option-Command-V
Option+Command+V is a deliberate two-step move: nothing leaves the source folder until the second shortcut.

See How to Cut and Paste a File on a MacBook (Step by Step) for the full steps, and Cut, Copy and Paste on a Mac: Every Method for Text, Files and Folders for every method.

What should you do after finding the file?

Put the file somewhere obvious straight away. If two copies now exist, compare the modified dates in Get Info before deleting either, so the newer version is kept.

FAQs

Can I undo a drag and drop on a Mac?

Yes. Press Command+Z straight after the drop and Finder reverses it, as long as Finder has not been relaunched since. Drag moves and keyboard moves are undone the same way, one operation per press.

Does a move delete the original?

Only after the copy finishes. A move within one disk just updates the file’s location, while a move across disks copies first and deletes afterwards.

Does a moved file keep its modified date?

Yes. A move does not change when the file was last modified, so searching by the date you last worked on it usually finds the file quickly.

Can I undo a file move after restarting my Mac?

Usually not with Command+Z, because Finder’s undo history does not survive a restart. Use Spotlight, the Trash or Time Machine to get the file back.

Sources

← Back to all articles

FileCutPaste: cut and paste files instantly on Mac with Cmd X and Cmd V. Try 5 cuts free.