0

Is there a program out there like mv and cp, which upon conflict automatically shows a diff before asking whether to override the target file?

This is such a basic feature in graphical file managers, and I am missing it on the Terminal.

5
  • I'm questioning whether showing a diff of files that contains "conflicts" is a standard feature of file managers. What constitutes a "conflict"? What is supposed to be shown if the files are not text files? The standard cp and mv utilities are not generic version control tools. Commented Dec 14, 2022 at 11:16
  • 2
    Don't know if "diffing" is actually a standard feature of GUI file managers, but showing a dialog comparing size and age of the files most definitely is; and I'd agree with xeruf, an interactive command line tool doing that is kind of missing, beyond what cp -i can do. Commented Dec 14, 2022 at 11:31
  • 1
    "shows a diff" - of content or metadata (timestamp, for example)? Commented Dec 14, 2022 at 13:03
  • I think with the term "diff" he meant of file size, attributes and modification date, and I kinda agree with that. I use linux for ages and never thought of it. I think I will write a little script for this. If so I will post it here as answer :) Commented Dec 14, 2022 at 17:58
  • really I don't care what is diffed, I just want some info, and if they are same in metadata and content don't even bother me about it Commented Dec 14, 2022 at 22:48

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.