在Ubuntu系統中,copendir
命令用于復制一個目錄及其所有內容。以下是一些使用技巧:
基本用法:
copendir /path/to/source /path/to/destination
使用-r
選項遞歸復制:
copendir -r /path/to/source /path/to/destination
使用--remove-destination
選項:
如果目標目錄已存在,使用此選項可以覆蓋它:
copendir --remove-destination /path/to/source /path/to/destination
注意事項:
--remove-destination
時要小心,以免意外刪除目標目錄中的內容。