Short for "difference" or "differencing", in computing, "diff" refers to a data comparison that calculates and displays the differences between two objects (usually files or directories).
Questions tagged [diff]
98 questions
0
votes
2 answers
MySQL differential dump? Other strategy for restore?
Is it possible to generate a differential dump with mysqldump - between two databases, or, ideally, between a database and a dumped version of that database?
Here's the issue I've got - I have an active/passive HA mirror of MySQL with the actual DB…

Alex Balashov
- 907
- 2
- 9
- 16
0
votes
3 answers
Monitoring folder diffs across servers with zabbix
Problem: I want to make sure that a certain folder is equal regarding it's contents across my servers.
I do not want an automatic filesync to keep them equal, changing is done manually.
My initial thought was to once a day calculate some crc/hash on…

Marcus
- 125
- 1
- 6
0
votes
2 answers
Bash: Comparison of two files having different file size
I have 2 files with me having content like:
file1:
a
b
c
e
g
s
and file2
s
a
b
c
I want to compare contents of the file, that what which letters are NOT present in other file, and which Are present in other file. problem is that the size of the…

Farhan
- 4,269
- 11
- 49
- 80
0
votes
4 answers
best syncing tool
rsync
zsync
Is there any other better sync/backup tool available on linux. I have a local installation of my site, a wiki. I wish to make changes to my local site, and then just wish to press a button :D or run the command over a folder, it should…

Vivek Sharma
- 465
- 2
- 5
- 14
0
votes
2 answers
ubuntu server version different with desktop version
I was surprising during check my ubuntu system. Since mid 2011 until now i'm use this different version of ubuntu. I found that my server is ubuntu 10.04 and my desktop is ubuntu 10.10.
But until now i found no problem. It caused by for desktop I…

klox
- 197
- 1
- 2
- 7
0
votes
3 answers
Parsing a diff file using grep/awk
I'm trying to parse a standard diff of some sql files to return only the delete sections. I have been using grep with the after context (-A) which almost works (only because I know that delete sections will all be very short). e.g.
diff $$_$1.sql…

Robert
- 133
- 1
- 7
0
votes
1 answer
Administrator and Administrators Group difference Windows Server 2008 and 2008 R2
Sorry if this question is not unique.
1) Is there any difference in permissions between a user in Administrators GROUP and
USER Administrator.
2) If they differ, are this differences the same for LOCAL Admins user and group and
for Domain Admins…

Nozim
- 139
- 5
0
votes
1 answer
Help with diffs - Neither WebSVN or OpenGrok are diffing
I'm having issues which may or may not be related (excuse the vagueness).
In Web SVN, I can't select multiple revisions and compare - when I hit compare, I get a page with nothing on it other than showing the revisions. However, I can select compare…

Sam
- 171
- 2
- 8
0
votes
3 answers
How to use bzdiff to find difference between 2 bzipped files with diff -I option?
I'm trying to do a diff on MySQL dumps (created with mysqldump and piped to bzip2), to see if there are changes between consecutive dumps. The followings are the tails of 2 dumps:
tmp1:
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET…

englebip
- 186
- 5
0
votes
1 answer
Unable to apply patch generated with diff on SunOS server
I generated a patchfile of 2 directories using this command:
diff -ur source-20110125 source > mailpatch3.patch
Now I would like to apply the patch, doing this:
patch -p1 < mailpatch3.patch
But it then asks me for the file to patch. Why?
Something…

Jelle De Loecker
- 1,094
- 6
- 17
- 30
0
votes
4 answers
What is the difference between a hub and a switch?
I'm sneeking around online store for used stock of hubs, routers and switches for a project I have to build a network infrastructure.
So far, I have bought:
1x Cisco 2514 Router;
5x Cisco Serial Transceivers;
1x 24-port Cisco Catalyst switch.
I…

Will Marcouiller
- 256
- 2
- 5
- 16
0
votes
1 answer
diff variables within a script
I realize that the diff command is reserved for directories/files, but I've seen it being able to read from standard input, so that's not necessarily true.
Is it possible to somehow compare two variables that were stored in a ksh script?
The code…

Nitrodist
- 316
- 3
- 13
0
votes
1 answer
Ubuntu 10.04 and 10.04.1 differences?
Initially I installed Ubuntu 10.04 on a given machine (original 64b official release). Install from scratch. I then applied the various updates.
Then, a friend with the exact same hardware, memory etc... as mine, decided she wants Ubuntu on it. So I…

Déjà vu
- 5,546
- 9
- 36
- 55
0
votes
1 answer
Show changes with diff using AIDE
is it possible to compare the changed file when using AIDE? In the automatic Email only the SHA256 will be compared. It would be pretty cool if i can see what changed, maybe with a diff or something.
Thanks for your response!
Greetings

vanishedd
- 3
- 2
0
votes
2 answers
Running (vertical?) diff on columns in a file
in our company we pull in inventory files from third parties. These files are in a fixed format, containing the 13-digit EAN (think UPC code) as well as other data. I also have a master list of EANs in our database.
I would like to compare the…

jotango
- 475
- 1
- 5
- 10