Skip to main content

Questions tagged [diff]

diff - Command-line tool to display the differences between two files, or each corresponding file in two directories.

-1 votes
1 answer
75 views

I am struggling with understanding how diff and patch are supposed to work. Here's my use case: I use Betterfox user.js config file for my Firefox profile, but I add some overrides to it. I want to ...
Nikita Karamov's user avatar
2 votes
1 answer
236 views

I'm looking for a command that compares binary files. Of course, I know about diff, but it is not very good at binaries. I have two files from a error-prone source (scratched dvd) which should be ...
Gyro Gearloose's user avatar
0 votes
0 answers
54 views

I've experienced total system freeze while checking if files where copied correctly by diff -rq [INTERNAL HDD] [USB HDD] This happened twice, always while running the diff. On the second occasion I ...
Marek Schwarz's user avatar
1 vote
0 answers
71 views

I've asked the question on SO before, but maybe it is better placed here. I'm running on Ubuntu 24.04.1 LTS (X11) and have p4merge installed in version p4v-2024.3.2656785. I'm using p4merge since ...
morecore's user avatar
  • 111
0 votes
1 answer
100 views

I am trying to hack the Linux kernel and added/modified some header files in include/linux. However, when I generate patch file using diff like: diff -uprN -X linux/Documentation/dontdiff \ ...
Kalman's user avatar
  • 3
0 votes
1 answer
485 views

I have two Docker images, each with many layers. I want to compare all the files in teh first image to all the files in the second one, to see what's been changed. I tried taring up the images using ...
Greg Dougherty's user avatar
0 votes
2 answers
126 views

Let's say that in a script, you have a directory $1 and its copy $2 and you'd like to compare the metadata (names, permissions, sizes, full modification dates, …) of the files and directories inside ...
AlMa1r's user avatar
  • 1
0 votes
0 answers
264 views

According to this process substitution can be used to do a SIMPLE diff between local and remote machine. However, I want to use the -qr option in the diff command, i.e., it must be recursive and brief ...
Ajned's user avatar
  • 111
0 votes
1 answer
134 views

I'm trying to synchronize two hard drives. I thought most people who don't want to lose any data and don't use RAID would use such a method so that there would be a well-working GUI. That doesn't seem ...
mYnDstrEAm's user avatar
  • 4,962
0 votes
1 answer
51 views

I would like to check when a file differ inside a backup system using snapshots. I have several folders with the same architecture inside ls -1 .snapshot 4-hourly.2024-04-14_0405 4-hourly.2024-04-...
ppr's user avatar
  • 1,999
0 votes
1 answer
74 views

I am doing diff -rq to check the difference between 2 folders (A and B). I don't want to know if folder A has any new files because that's expected. How do I ensure that this information doesn't come ...
desert_ranger's user avatar
0 votes
1 answer
104 views

I have configured git diff to be a command that calls substitute diff for viewing file differences i.e /usr/bin/vim -dR "$2" "$3" and that doesn't work when I want to create a ...
vfclists's user avatar
  • 7,919
0 votes
1 answer
161 views

Referring to this https://stackoverflow.com/a/31356602, I wrote this code: #!/bin/bash # Define the two strings to compare string1="First string with some random text." string2="Second ...
Gabriele's user avatar
  • 353
0 votes
2 answers
323 views

Is there a way/tool to show differences between two files side by side only highlighting differences in a similar way kdiff3 does that but with a tool that is reasonably fast?A similar question was ...
atapaka's user avatar
  • 675
2 votes
1 answer
1k views

I'm used to meld for editing while seeing an intra-line diff that's updated live in response to edits. One just types in the left or right pane of the window and then save one or both files. I'm ...
Croad Langshan's user avatar

15 30 50 per page
1
2 3 4 5
37