復制目錄結構 cd /var/www/html/ ; find . -type d -exec expr substr {} 3 length {} \; | xargs -i mkdir /var/www/test/{} ; cd - 頭家出的問題,搞定~