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.
In reply to Re^4: file::move and networks
by Argel
in thread file::move and networks
by philc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |