Hide .DS_Store and .localized from Desktop only without 3rd party app There is an app called XtraFinder which does exactly that - it shows hidden files while it can still hide those two files from Desktop only.

Is it possible to do something like that without installing a 3rd party app (I'm using Mavericks)?
This first command will remove all the icons on your Desktop, but keep the files visible in finder:

defaults write com.apple.finder CreateDesktop -bool false &amp;&amp; killall Finder


While this second one will restore all the icons on your Desktop:

defaults write com.apple.finder CreateDesktop -bool true &amp;&amp; killall Finder