close

Normally cp would have an alias of the follwing:
which cp
alias cp='cp -i'
         /bin/cp

-i , which is interactive   (prompt before overwrite)

To avoid this behavior, the alias must not be used.

Overwrite an existing file without prompt by issuing:

/bin/cp -f  /test/123  /test/123.bak
arrow
arrow
    全站熱搜

    DanBrother 發表在 痞客邦 留言(0) 人氣()