Linux Ubuntu Copy Files and folders cp command

preview_player
Показать описание
cp [OPTION] [SOURCE] [DESTINATION]

Options
-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links.
-v : Verbose output.
-r : Copy directories recursively.

Copy Exapmple1 into Exapmple2
cp -avr /var/Example1 /var/Example2

Copy content of Exapmple1 into Exapmple2
cp -avr /var/Example1/* /var/Example2
Рекомендации по теме