請教 cp 複寫的用法 - Linux

Table of Contents

※ 引述《kadok (暗夜流星)》之銘言:
: ※ 引述《previewslave (蝦蝦蝦蝦 來玩圍棋吧)》之銘言:
: : 有時候 cp 許多檔案時,會遇到檔名相同的檔案。
: : 請問,如何加上參數始 cp 遇到檔名相同時,自動複寫呢?
: man cp
: -f, --force
: if an existing destination file cannot be opened, remove it and try again

可是在下使用 -f 參數都無效說,

在 Fedora 中即使是使用 -f 參數,它仍然會一一詢問,一直無法解決。

使用 --force 也是一樣。

請問這是哪裡搞錯了呢?

PS: 在下是嘗試了很多次,看了 --help 很多次一直無法解決才上來問的。

--

All Comments

Sarah avatarSarah2008-05-20
到你的~/.bashrc中把 alias cp="cp -i"注解掉試試