How to Hide Your Mac Desktop Icons with a Terminal Command

If you use your Mac to record screencasts, present during Zoom meetings, or project to a large audience, a cluttered desktop filled with personal files and screenshots looks unprofessional. While you could create a temporary folder and drag everything into it, there is a much faster way to temporarily make all your desktop icons completely invisible using the Terminal.

How to Hide Your Desktop Icons

This method does not delete any files; it simply tells macOS to stop rendering the Desktop interface.

  1. Open the Terminal app (found in Applications > Utilities, or by pressing Cmd + Space and searching for it).
  2. Copy and paste the following exact command into the terminal window:
    defaults write com.apple.finder CreateDesktop false
  3. Press Return.
  4. For the change to take effect, you must restart the Finder application. Copy and paste this second command:
    killall Finder
  5. Press Return.

Your screen will flash briefly as Finder restarts, and every single icon on your desktop will vanish, leaving you with a perfectly clean wallpaper. Your actual files are completely safe; you can still access them by opening a Finder window and clicking on the Desktop folder in the sidebar.

How to Bring Your Icons Back

Once your presentation is over, you can easily restore your desktop to its normal state.

  1. Open the Terminal app again.
  2. Paste the following command to re-enable desktop rendering:
    defaults write com.apple.finder CreateDesktop true
  3. Press Return.
  4. Restart Finder again by running:
    killall Finder

Your icons will instantly reappear exactly where you left them.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.