cp
- 将来源文件夹
packageA
下的所有目录及文件复制到新文件夹packageB
下,形成:/packageB/...
# cp -r /home/packageA/* /home/cp/packageB/
- 将来源文件夹
packageA
(及其内的所有目录及文件)复制到新文件夹packageB
下,形成:/packageB/packageA/...
# cp -r /home/packageA /home/packageB
运行命令之后 packageB 文件夹下就有 packageA 文件夹了。