The undo and redo shortcuts are among themost important Mac keyboard shortcuts.

These shortcuts work in basically all Mac apps.

For undo, the keyboard shortcut isCmd + Z.

Man sits at a laptop outside looking up at the sky in distress

For redo, the keyboard shortcut isShift + Cmd + Z.

It can be useful to have such similar shortcuts, as you’re more likely to remember them.

it’s possible for you to also access and activate them within app menus.

Hands typing on MacBook Pro keyboard

Simply click onEdit, and then selectUndoorRedofrom there to perform the action.

This might be undoing typing or redoing the movement of a file or object.

Apps like Microsoft Word also have undo and redo buttons in their main app windows.

Undo and redo options visible under Edit menu in Pages on a MacBook Pro

These buttons often look like arching arrows, the undo one facing left while the redo one facing right.

This can include emptying the Trash, which permanently deletes files.

it’s possible for you to go through these snapshots and hit theRestorebutton there to save files as well.

Undo and redo buttons visible in Word on Mac

If you save files to iCloud, you could recover deleted files from there too.

Log intoiCloud.com, hit the grid of squares icon at the top-right corner, and selectData Recovery.

Then clickRestoreto put it back on your setup.

Time Machine local snapshot of Finder Documents folder on MacBook Pro

Other backup software and cloud storage services will offer similar options to Time Machine and iCloud for file restoration.

So first, don’t use your Mac for much of anything to avoid that overwriting.

Mistakes, even severe ones, don’t have to be permanent.

Restore Files from iCloud Drive