NAME cp - copy files and directories -a,--archive same as -dpR -d same as --no-dereference --preserve=links -p same as --preserve=mode,ownership,timestamps -R,-r,--recursive copy directories recursively
所以回答你的问题:
cp -a /foo /bar
将所有内容从目录/ foo递归复制到目录/栏,同时保留符号链接和文件/目录’模式”所有权’& “时间戳”.