Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

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
1  
Ah, to delete, run sudo rm -r /usr/share/themes, note, no slash at the end. –  mikewhatever Sep 16 '12 at 23:19
show 2 more comments

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

sudo cp ...
share|improve this answer
add comment

Your Answer

 
discard

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.