filmov
tv
Linux Ubuntu Copy Files and folders cp command
Показать описание
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
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