01 / CLIPBOARD · 5 min read

How to Undo on Mac: Shortcuts, Redo, and Recovery

Revert accidental typing, formatting mistakes, and Finder file moves, learn the shortcut for Redo, and recover lost clipboard snippets with local history.

To undo on Mac, press Command + Z (⌘Z) on your keyboard. This shortcut reverses your most recent typing, formatting change, or file action in Finder. To redo an undone action, press Shift + Command + Z (⇧⌘Z). If you accidentally close an app or overwrite copied text, standard undo cannot recover clipboard data without a local clipboard history utility.

Accidental deletions, misplaced files, and unintended edits happen daily. macOS provides a universal undo stack across system apps, allowing you to roll back mistakes instantly with keyboard shortcuts.

Method 1: Universal Undo Shortcut (Command + Z)

The standard keyboard shortcut to undo on Mac is Command + Z (⌘Z). It works across virtually all macOS applications:

  • Text Editors: Undoes the last typed character, word, or pasted paragraph in Notes, Pages, and Word.
  • Graphic Design: Reverses brush strokes, crop adjustments, or layer movement in Photoshop, Figma, and Illustrator.
  • Web Browsers: Reopens accidentally closed browser tabs in Safari when pressed immediately after closure.

Method 2: How to Redo on Mac (Shift + Command + Z)

If you press ⌘Z too many times and reverse an edit you wanted to keep, perform a Redo:

  • Press Shift + Command + Z (⇧⌘Z) in most native macOS apps.
  • In certain cross-platform apps (such as Microsoft Office suite), Command + Y (⌘Y) functions as the secondary Redo shortcut.

Method 3: Reverting Finder File Moves and Trashing

One of macOS Finder's most useful features is file undo. If you accidentally drag a file into the wrong nested directory or send an item to the Trash:

  1. Click anywhere on your desktop or active Finder window to ensure Finder is the frontmost application.
  2. Press Command + Z (⌘Z).
  3. Finder automatically moves the trashed or displaced file back to its exact previous directory path.

Method 4: Application Edit Menu Inspection

When you are uncertain what action will be reversed, inspect the top menu bar:

  • Click Edit in the menu bar.
  • The first item displays dynamic text such as Undo Typing, Undo Move of "Report.pdf", or Undo Delete.
  • If Undo is grayed out, the application’s undo buffer is empty or the document has been closed and reopened.

The Fatal Limit of Undo: Lost Clipboard Data

macOS only maintains a single item in its system pasteboard. If you copy a critical token, password, or URL, and subsequently copy another string before pasting, Command + Z cannot retrieve what was in your clipboard.

Protecting Copied Snippets with Tegaro Clipboard

To eliminate clipboard data loss, Tegaro Clipboard retains an encrypted, private local history:

  • On-Device Retention: Stores your recent text and image clippings for 1, 7, or 30 days entirely on your local Mac storage.
  • Quick Clipboard 1–9: Pop up a numbered menu with a global hotkey to paste any of your last nine clippings without searching.
  • Automatic Password App Exclusions: Protects your sensitive credentials by automatically ignoring clipboard items copied from password managers.
Terminal Deletion Warning

Command + Z cannot undo commands executed in the macOS Terminal. Files deleted using rm or rmdir are permanently unlinked from the APFS file system without entering the Trash.

Frequently Asked Questions

What is the shortcut to undo on Mac?

The keyboard shortcut to undo on Mac is Command + Z (⌘Z). It works across almost all macOS apps, including Safari, Pages, Notes, and Finder.

Can you undo a Terminal rm command on Mac?

No. Terminal deletion commands like rm and rm -rf permanently erase files from disk without passing through the Trash or undo buffer. Always verify file paths before running deletion commands.

How do you undo an action if Command + Z does not work?

Check the Edit menu in the menu bar to see if Undo is grayed out. If the app has closed or lost its undo stack, you can restore previous file versions via Time Machine or retrieve lost text from Tegaro Clipboard history.

Clipboard / Tegaro

Experience Native On-Device macOS Productivity

Tegaro combines Clipboard, Clipboard, Displays, Power telemetry, and Typing into one menu-bar icon. All eight tools free for 14 days; then Critter, Power and AI limits stay free, and one Pro license covers the rest.