Contact Latest Articles Home rafled dot net

How to copy contents inside a folder to different directory

15th Jan, 2021 | Tech


You can use this command to copy files inside a folder to a different directroy.

cp -a folder/. /destination/

or use this command if the folder is in a different directory.

cp -a /full/source/to/folder/. /full/source/to/destination/