Hide .DS_Store and .localized from Desktop only without 3rd party app

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 && killall Finder

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

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