Unhide desktop icons
Solution 1:
You might have accidentally show the hidden files in Finder. Try this command to hide all the hidden files:
defaults write com.apple.finder AppleShowAllFiles -bool NO
To show it again, change the BOOL value from NO to YES:
defaults write com.apple.finder AppleShowAllFiles -bool YES