in reply to Re^3: file::move and networks
in thread file::move and networks
Un*x does not do that, you need 'mv -f file1 file2' to force the mv on existing file
That's not true. The default behavior for cp, rm, and mv is to behave as if '-f' was specified on the command line.
I think you are confused because all three of these commands are usually aliased to 'cp -i', 'rm -i', and 'mv -i' respectively. Run 'alias' to see this. The '-f' option is useful because it overrides the '-i', though you could also escape the alias ('\mv') or full path the comamnd ('/bin/mv') to achieve the same results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: file::move and networks
by sgt (Deacon) on Jul 17, 2007 at 09:53 UTC |