Updated

How to use Terminal to securely erase free space on a Mac’s mechanical drive

Learn how to use Terminal to securely erase free drive space.
macOS Big Sur Terminal icon
Apple

Note: When you purchase something after clicking links in our articles, we may earn a small commission. Read our affiliate link policy for more details.

Former Macworld Senior Editor Rob Griffiths founded Mac OS X Hints. He's now master of ceremonies at Many Tricks Software.