sh

embluk

·

Copying Files in Linux

·

SH

·

Total Size: 821 B

·

·

Created: 5 years ago

·

Edited: 5 years ago

Example: >> cp -a /source/. /dest/

https://askubuntu.com/questions/86822/how-can-i-copy-the-contents-of-a-folder-to-another-folder-in-a-different-directo

You can copy the content of a folder /source to another existing folder /dest with the command:

cp -a /source/. /dest/

The -a option is an improved recursive option, that preserve all file attributes, and also preserve symlinks.

 

The . at end of the source path is a specific cp syntax that allow to copy all files and folders, included hidden ones.

1 bit

866 views

Are you sure you want to delete?