If you are new to Linux and are using Ubuntu, you may find it frustrating that there's no instant option to easily hide/show desktop icons just like in Windows. But there's no need to worry as there are several ways to minimize or eliminate your desktop clutter and hide some or even all the icons from your Ubuntu desktop.
Hiding home, computer, network, drives, and trash desktop icons:
To hide the home, computer, network, drives, and trash icons, simply open Configuration Editor by pressing Alt-F2, type gconf-editor, and run it.
Inside the Configuration Editor, navigate to apps --> nautilus --> desktop. At the right-hand pane, you should see several checkboxes. Just uncheck the box that corresponds to the icon that you would like to hide.
Hiding all the desktop icons:
To hide all the icons from your Ubuntu desktop including perhaps your downloaded files and documents, open the Configuration Editor, navigate to apps --> nautilus --> preferences, and then locate show_desktop item from the right-hand pane. Uncheck the box and voila, all of your desktop icons should be gone by then.
Hiding desktop icons using Ubuntu Tweak:
If you have already installed this popular application called Ubuntu Tweak, you can use it in hiding your desktop icons in a simpler way than I've shown above.
Using Ubuntu Tweak, just go to Desktop Icon Settings, and then uncheck the icon or icons that you would like to hide. For those of you who have not installed Ubuntu Tweak yet, just get it using Synaptic Package Manager or through Ubuntu Software Center.That's about it.
If you have other ways in hiding Ubuntu desktop icons, share them with us via comment.
Cheers!
Why do you want to hide the icons on your Desktop?
If you dont like them just delete them.
Or move them away like:
HIDE:
mv ~/Desktop ~/Desktop_with_icons && mkdir Desktop && nautilus -q
UNHIDE:
rmdir ~/Desktop && mv ~/Desktop_with_icons ~/Desktop && nautilus -q
thank you
Example file: ~/Desktop/.hidden
# file1
# file2
This .hidden file is read by Nautilus in ANY folder. I use it extensively on the partition I share between Ubuntu and Windows to hide 'desktop.ini' and 'Thumbs.db' files.
preferences options will not work for Oneiric. The following setting(command)O will be useful
gsettings set org.gnome.desktop.background show-desktop-icons false