[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cp and mv with interactive option
From: |
Bob Proulx |
Subject: |
Re: cp and mv with interactive option |
Date: |
Sat, 9 Feb 2002 12:51:38 -0700 |
> cp and mv commands don't seem to be able to use -i. The mv or cp
> transpires and I'm returned to the command line. Where else would I
> check to see if this is turned off? Or is it a bug?
You might look at any aliases that you have in your environment.
alias cp
alias mv
And see if they are mapped to something.
You should also check the the target file is actually existing. The
mv -i options only prompt if they are overwriting an existing file.
If the file does not exist then there is no file to overwrite and
there is no prompting.
-i, --interactive
prompt before overwrite
touch foo
mv -i foo bar
touch foo
mv -i foo bar
mv: overwrite `bar'? y
mv --version
mv (fileutils) 4.1
Bob