14,959
edits
| Line 38: | Line 38: | ||
=== copy old directory to new directory === | === copy old directory to new directory === | ||
* {{kbd | key=cp -a ''old_dir new_dir/''}} ({{Linux}}) | * {{kbd | key=cp -a ''old_dir new_dir/''}} ({{Linux}})<ref>from manual: | ||
-a, --archive | |||
same as -dR --preserve=all | |||
-d same as --no-dereference --preserve=links | |||
--preserve[=ATTR_LIST] | |||
preserve the specified attributes (default: mode,ownership,timestamps), if possible addi- | |||
tional attributes: context, links, xattr, all | |||
-R, -r, --recursive | |||
copy directories recursively</ref> | |||
* {{kbd | key=copy /Y ''old_dir new_dir/''}} ({{Win}})<ref> /Y 不顯示覆寫現存目的檔案的確認提示。 (引用自 copy /? 命令說明)</ref> | * {{kbd | key=copy /Y ''old_dir new_dir/''}} ({{Win}})<ref> /Y 不顯示覆寫現存目的檔案的確認提示。 (引用自 copy /? 命令說明)</ref> | ||
* make new directory & copy all old files to new directory | * make new directory & copy all old files to new directory | ||