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
Related videos on Youtube
Author by
Samuel
Updated on September 18, 2022Comments
-
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 over 11 yearsI just tried that, and the directory was created, but the themes will not show up in the appearance settings.
-
mikewhatever over 11 yearsHave you logged out/in?
-
Samuel over 11 yearsOK 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 over 11 yearsAh, to delete, run
sudo rm -r /usr/share/themes
, note, no slash at the end. -
Samuel over 11 yearsThank you very much. The problem has been resolved, and I will post an updated answer with instructions after the minimum time has passed.
-
cauon over 11 yearsIf 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.