How to Hide Desktop Icons Using Terminal
How to Hide Desktop Icons Using Terminal
Open the Terminal app from the Launchpad.
Type in the following command and press Enter to hide everything on your desktop. Your desktop should be blank, without even a single icon on it.
defaults write com.apple.finder CreateDesktop false
killall Finder
How to Unhide Icons on the Desktop Using Terminal
To unhide the icons on your desktop with Terminal, launch Terminal, type in the following command and press Enter.
defaults write com.apple.finder CreateDesktop true
killall Finder
All your files and folders will now reappear on the desktop.
Enjoy!