Linux commands: Difference between revisions

Jump to navigation Jump to search
290 bytes added ,  21 August 2017
Line 67: Line 67:
               tional attributes: context, links, xattr, all
               tional attributes: context, links, xattr, all
-R, -r, --recursive
-R, -r, --recursive
               copy directories recursively</pre></ref>
               copy directories recursively</pre></ref>: All files and sub folders under {{kbd | key=old_dir}} will copy to the sub folder of {{kbd | key=new_dir}}/{{kbd | key=old_dir}}.
* {{kbd | key=cp -a ''old_dir/* new_dir/''}} ({{Linux}}): All files and sub folders under {{kbd | key=old_dir}} will copy to the folder {{kbd | key=new_dir}}.
*  {{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

Navigation menu