Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just changed from Ubuntu 13.04 to Xubuntu 13.04 in an attempt to improve the performance of my slightly outdated notebook. Everything apparently went fine except that my desktop is now cluttered with temporary backup files. I can easily remove them in the file manager by unclicking "Show hidden files", but this does not have any effect on the desktop itself.

In want of a better solution, I have considered redirecting my temporary backup files to a folder other than the Desktop folder, but I am not sure how to do that either.

If anybody knows how to either hide the backup files from my desktop, redirect them to another folder, or work some other kind of magic, I would be most grateful.

share|improve this question

To hide a file or folder just rename it and put a "." in front of its name

mv /home/user/Desktop/file1 /home/user/Desktop/.file1

this will hide files/folders.


To move the backup files to another location use the move command in terminal

mv /home/user/Desktop/file1 /place/where-to/move

To move particular type of files like .sql files

mv /home/user/Desktop/*.sql /plcae/to/move

To move file ending with "~" use

mv /home/user/Desktop/*~ /plcae/to/move
share|improve this answer
Your advice works just fine for single files, but is there a way to automate the process for temp files in general (e.g. for all files ending with "~") as new files keep appearing on the desktop as I open and close documents? – Jacob Aug 10 '13 at 21:08
I have edited the answer, you mean to say that after opening the files the temporary files doesn't gets removed and still show on the desktop? – Tarun Aug 11 '13 at 8:11
Yes, whenever I use a file on the desktop a temporary backup file ending in "~" is created and saved on the desktop. This is not a problem in the file manager where those files are easily hidden by unclicking "Show hidden files", but this has no effect on the desktop screen itself. Somehow, it appears that the desktop screen and the file manager are inconsistent when it comes to showing or not showing hidden files. – Jacob Aug 11 '13 at 8:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.