linux cp拷贝并强制覆盖
时间: 2023-10-18 17:00:00 浏览: 162
在Linux中,使用cp命令进行文件拷贝时,默认情况下是不会强制覆盖已存在的目标文件的。而且在一些Linux发行版中,cp命令被设置为别名,实际上执行的是"cp -i"命令,即会在目标文件已存在时提示用户是否覆盖。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Linux下cp复制强制覆盖的方法](https://blog.csdn.net/weixin_29743373/article/details/116866904)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Linux cp 复制文件强制覆盖的用法](https://blog.csdn.net/u014374009/article/details/121510606)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文