Linux: Copy files and folders recursively from location A to location B

You can use: cp -a /locationA/.  /locationB/ or alternatively rsync -a locationA/  locationB Note: just change “locationA” with your source folder and “locationB” with your destination folder