cp

复制文件

复制目录

$ cp -r dir1 /tmp

复制文件保留原属性

保留原文件的权限,所属者、所属组。

$ cp -p /home/alvin/poppy /tmp/