Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • I tried it as follows mv -b file destination/ . Now in the destination is file and file~ . I have another file named file. I used the command mv -b file destination/ and one file was lost, in destination there is only file and file~. I expected there will be file~~ too. Commented Nov 3, 2011 at 11:34
  • 5
    Try: mv --backup=numbered file destination/ instead. Commented Nov 3, 2011 at 12:21
  • 2
    Note that this renames the existing file at the destination, rather than creating a new name for the file being moved. (It's not clear whether this is acceptable for what you're asking) Commented Nov 3, 2011 at 17:20
  • @Random832 This is acceptable for me. Commented Nov 3, 2011 at 18:43