How do I use a sudo command line to copy a folder into the system files?

63,782

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:
63,782

Related videos on Youtube

Samuel
Author by

Samuel

Updated on September 18, 2022

Comments

  • Samuel
    Samuel over 1 year

    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.

  • Samuel
    Samuel over 11 years
    I just tried that, and the directory was created, but the themes will not show up in the appearance settings.
  • mikewhatever
    mikewhatever over 11 years
    Have you logged out/in?
  • Samuel
    Samuel over 11 years
    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)
  • mikewhatever
    mikewhatever over 11 years
    Ah, to delete, run sudo rm -r /usr/share/themes, note, no slash at the end.
  • Samuel
    Samuel over 11 years
    Thank you very much. The problem has been resolved, and I will post an updated answer with instructions after the minimum time has passed.
  • cauon
    cauon over 11 years
    If you feel that @mikewhatever answer helped you to fix the issue. Please mark the answer as accepted answer by clicking on the grey tick mark. Thanks.