Hacker News new | ask | show | jobs
by fireattack 328 days ago
But it will show a warning. I don't get the issue.

   D:\3\test\a>move 1 ..\1
   Overwrite D:\3\test\1? (Yes/No/All):
If anything, it's better than Linux where it will do this silently.
1 comments

The Linux (GNU?) version (mv) can change its behaviour according to what you want.

e.g. "mv --backup -- ./* wrong-location-that-doesnt-exist" will rename your files in an unhelpful fashion, but won't lose any.

e.g. "mv --no-clobber -- ./* wrong-location-that-doesnt-exist" won't overwrite files.

It's trivial to setup an alias so that your "mv" command will by default not overwrite files. (Personally I'd rather just be wary of those kinds of commands as I might be using a system where I haven't customised aliases)

tinycorelinux aliases cp and mv to include -i which is nice.