Linux commands: Difference between revisions
Jump to navigation
Jump to search
→Copy & overwrite file
No edit summary |
|||
| Line 80: | Line 80: | ||
=== Copy & overwrite file === | === Copy & overwrite file === | ||
overwrite file without prompt (confirmation) | Copy and overwrite file without prompt (confirmation) | ||
* {{kbd | key=cp -f ''to_be_copy.file'' ''to_be_overwrote.file''}} | * On {{Linux}} {{kbd | key=cp -f ''to_be_copy.file'' ''to_be_overwrote.file''}} <ref>[http://www.ewdna.com/2012/05/linux-cp-force-overwrite.html Linux:檔案複製強制覆寫, cp force overwrite @ 符碼記憶]</ref> | ||
* {{kbd | key=/bin/cp -f ''to_be_copy.file'' ''to_be_overwrote.file''}} | * On {{Linux}} {{kbd | key=/bin/cp -f ''to_be_copy.file'' ''to_be_overwrote.file''}} | ||
* On {{Win}} {{kbd | key=<nowiki>copy /Y C:\source\some.file C:\target\</nowiki>}}<ref>[https://home.csulb.edu/~murdock/copy.html DOS Command: COPY]</ref> | |||
==== Copy old directory to new directory ==== | ==== Copy old directory to new directory ==== | ||