覆盖复制: cp -rf a/* b/ 不覆盖复制: awk 'BEGIN { cmd="cp -ri a1/* a2/"; print "n" |cmd; }' 转载于:https://www.cnblogs.com/againn/p/9290543.html