Linux simple use of the cp command

Simple use of linux cp command, usually used in most of the work is to copy files or folders to a directory

E.g

1, copy the files to /home/weblogic/a.txt under / root / product / directory

cp /home/weblogic/a.txt /root/product/

2, the / home / weblogic / project folder to / root / product / directory

cp -rf /home/weblogic/project /root/product/

-rf forced recursive copy

 

 

Guess you like

Origin www.cnblogs.com/cyb-652356/p/11882539.html