Ubuntu – How to copy everything from USB to file system

clipboardcommand lineusb

I have mounted the USB and have successfully accessed it. On the USB are files and directories with files within them as well as .htaccess files.

I know that the terminal can't see the .htaccess files since everything in ubuntu starting with . is hidden. However, I can see them on the GUI if I enable Show Hidden Files.

Anyways, my question is, how do I copy EVERYTHING, including the .htaccess and directories while keeping the structure intact as it is on the USB to /var/www

Thanks

Best Answer

Like the comment above says, cp -r will copy it, so just run cp -r /media/<usb-name> /path/to/target