I have a usb stick that contains the folders "theme" and "icons". I want to copy those 2 folders in the folder home/andrew/.config folder of my computer or any other computer. How can i do that using the terminal?
I am on a Linux Mint xfce system.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Given your username is Andrew or rather
andrew, it will most likely be mounted under
/media/andrew/a_volume_name. So first you need to get this full path. You can store it in a shell variable to make things easy:
See or find the right entry in the output, and now save it in the source directory variable:
Of course replace
my_usb_drive with the right name. Once you have this, enter this command:
cp -r "$s_dir"/theme "$s_dir"/icons /home/andrew/.config