ubuntu下使用copy命令如果文件存在则提醒

童年的回忆 / 2023-05-11 / 原文

拷贝时带有交互提醒

cp -i  ../a.txt .

拷贝时强制覆盖

cp -f  ../a.txt .

ubuntu 默认应该是强制覆盖,所以需当心