Hide all desktop icons:
$ defaults write com.apple.finder CreateDesktop -bool false
$ killall Finder
Show all desktop icons:
$ defaults write com.apple.finder CreateDesktop -bool true
$ killall Finder
Hide all desktop icons:
$ defaults write com.apple.finder CreateDesktop -bool false
$ killall Finder
Show all desktop icons:
$ defaults write com.apple.finder CreateDesktop -bool true
$ killall Finder