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

Specifically, my "themes" folder has been corrupted (my fault), and I need to replace the entire folder with a backup that I made.

I will add a finalized answer once I can.

share|improve this question

It would go something like this:

sudo cp -r /path-to-backup/themes /usr/share/

cp is the copying command

-r is there for recursiveness

share|improve this answer
I just tried that, and the directory was created, but the themes will not show up in the appearance settings. – Samuel Sep 16 '12 at 23:02
Have you logged out/in? – mikewhatever Sep 16 '12 at 23:05
Yes. Also, thanks for the quick response. – Samuel Sep 16 '12 at 23:06
OK I found the problem, it's rather embarrassing, but I created a themes folder in the themes folder. What's the command to delete a folder? (sorry I'm new to this) – Samuel Sep 16 '12 at 23:12
Ah, to delete, run sudo rm -r /usr/share/themes, note, no slash at the end. – mikewhatever Sep 16 '12 at 23:19

Passing the command to execute to sudo without any additional arguments will execute it as root.

sudo cp ...
share|improve this answer

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.