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).

learn more… | top users | synonyms

0
votes
1answer
13 views

how to compare and move the matched string files in different locations

I have a two different .zip files in /tmp/1/ and /tmp/2 I want to compare these two different location files and move the matched string files into /tmp/3 /tmp/1 ArchiveFile_aaa.zip ArchiveFile_bbb....
3
votes
3answers
10k views

Apply multiple .patch files

I have a directory with .patch files, generated using diff. I would like to apply all those patches using patch -p1 to another directory. But patch takes only one file, unless I cat. What would the ...
-1
votes
3answers
44 views

Compare 20 files with diff, not 2

Background We are moving from managing hosts by hand to configuration management. 20 files I want to compare 20 times a config file from 20 hosts. For example /etc/crontab Use case I guess about ...
0
votes
3answers
1k views

Import VMs with differencing VHD into Hyper-V 2012

I've recently installed Windows Server 2012 to my test server to run Hyper-V test environment. I have bunch of old VMs which were created in Windows Server 2008 R2 Hyper-V which I didn't export in ...
0
votes
1answer
17 views

Show files to be patched on .diff file and determine if they are patched or not [closed]

Having a .diff patch file, I'm trying to take actions in a shell script depending on if files listed in .diff file are: 1) already patched, 2) not patched, 3) not patchable. I found no way on GNU ...
-1
votes
2answers
20 views

compare directories local and server with diff

I am trying to find the differences between a directory in my local computer and a remote server. After a lot of trial and error i have found the following command from here: diff -q <('sudo ls -...
1
vote
2answers
564 views

rsnapshot diff between snapshots

I am using rsnapshot to manage incremental backups of some GNU/Linux servers. Although rsnapshot is delivered with a tool called rsnapshot-diff it just provide disk space statistics. The question is ...
0
votes
2answers
83 views

Diff tool which I can force certain lines to match [closed]

I have files that I want to compare, and I would need to have a way to force lines to match for the algorithm to pick the block to compare correctly. For example: FILE1 test1 subline1 ...
0
votes
1answer
31 views

Does rsnapshot save binary diffs?

I use rsnapshot for some years under Kubunt/Linux. But I am not sure how it (and underlying rsync) handles binary diffs: Image a large Thunderbird mailbox file or a 10 MB jpg photo and I change the ...
41
votes
7answers
42k views

How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?

How can I get diff to show only added and deleted lines? If diff can't do it, what tool can?
0
votes
1answer
29 views

AIX diff not showing the content of a new file

I need to create a patch between 2 folder: On linux: diff -Naur folder folder_fix It's working for all the file I just edited but not for the one I added (can't get the content of it). The command ...
0
votes
1answer
905 views

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 ...
0
votes
1answer
97 views

How can I check if a directory contains the same files of a TAR archive?

Let's say I have a folder Documents and a TAR file Documents.tar, how to check if the tar file contains the same files that are present in the directory? The more obvious solution to me would be to ...
1
vote
1answer
83 views

Load, Compare & Diff Registry of Windows Servers & Clients on VHDs?

We are deploying various Windows Servers {2008, 2012} & Clients {7,8.x, 10} and various custom applications, versions & special utilities. Without bothering the audience here on specifics of ...
126
votes
14answers
75k views

How do diff over ssh?

How do I diff files/folders across machines provided that the only connectivity available is ssh?
0
votes
0answers
16 views

Checking which files have changed since installed [duplicate]

Is there a way to find out which files have been changed/added from an RPM? Specifically, I have an application which has a giant tree of configuration files which I need to replicate/document on a ...
-1
votes
1answer
31 views

Diff with 2 files [closed]

Try'd a lot of different commands, Diff / comm / grep / etc... But dont know how to manage this. It's for my bash script. I want to get the result of the correct / incorrect answers. the example ...
1
vote
3answers
776 views

How to see what Windows registry and file system changes happened after a software install?

I'm solving a problem - I'm installing software on Windows and it makes the system unstable for some reason. Windows starts crashing soon after. I want to know what changes it made to the registry and ...
9
votes
3answers
10k views

How do I diff two folders in Windows Powershell?

I'm trying to find differences in the content of two folder structures using Windows Powershell. I have used the following method to ensure that the file names are the same, but this method does not ...
24
votes
6answers
754 views

How do I prove two files are the same legally?

We had someone steal some files before quitting and it has eventually come down to a lawsuit. I've now been provided with a cd of files and I have to "prove" that they are our files by matching them ...
13
votes
3answers
7k views

Linux tools to find duplicate files?

I have a large and growing set of text files, which are all quite small (less than 100 bytes). I want to diff each possible pair of files and note which are duplicates. I could write a Python script ...
0
votes
2answers
4k views

How to compare/diff ACLs on two directory trees?

I have two directory trees that are supposedly copies of each other. I need to compare not the contents of files but the permissions on them. Is there a tool that will compare two dir trees but ...
3
votes
2answers
3k views

How to create a chained differencing disk of another differencing disk in Virtual Box?

How to create a differencing disk (a chained one) from a disk that is already a differencing image? I would like to have: W2008 (base immutable) -> W2008+SQL2008 (differencing, with SQL ...
0
votes
1answer
121 views

subversion directory structure diff between revisions [closed]

I can't seem to find a way to use Subversion to take a diff of directory structure changes between two revisions. I'd like to see what files/directories/symlinks have been added/deleted between two ...
3
votes
1answer
127 views

Bug in diff: wrong output for one-character files without newline [closed]

Consider this: echo -n a > /tmp/a echo -n b > /tmp/b diff -B /tmp/a /tmp/b Clearly, the two files are different, yet, diff seems to think that the files are identical. I've managed to ...
12
votes
6answers
14k views

How to compare two directories (including sub directories) for differences?

How can I compare two directories with sub dirs to see where is the difference?
-1
votes
3answers
395 views

what is the difference between Linux and Unix “in general” and “command-line”? [closed]

if anyone can Summarized the difference between Linux and Unix in general and in command-line in particular
5
votes
2answers
186 views

debian, diff, config default

I want to know if is posible to get the diff on the original versus the current config files of installed debian packages. If found an answers which shows up the modified config files, but I find no ...
17
votes
3answers
13k views

compare 2 directories and copy differences in a 3rd directory

Running ubuntu 12.04, I want to compare 2 directories, say folder1/ and folder2/ and copy any files that are different to folder3/. There are also nested files, so matching subdirectories should be ...
16
votes
2answers
4k views

Does btrfs have an efficient way to compare snapshots?

While diffing mounted snapshots would work, it sounds like it could be horribly slow in many cases. Is there btrfs specific functionality for diffing snapshots? (I was unable to find any in the docs)
-4
votes
1answer
31 views

How to remove programs installed from source using diff?

Is there a way to remove compiled from source programs rather than make uninstall? Can we take snapshots of filesystem before and after installation and take a diff and remove the installation? Also ...
0
votes
1answer
116 views

Xen dom0 and domu ifconfig returns different stats

I expected that when I use ifconfig command to display network traffic RX and TX values both for dom0 and domu machine, there are differences. I run once ping inside the domu. domu ifconfig command ...
0
votes
3answers
1k views

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 ...
1
vote
4answers
2k views

Diff and patch for big binary files

As part of my job I regularly need to upload big files (a 512 MB to 1 GB ISO, for example). In some cases, very little changes from ISO to ISO (say, a 10 MB file in a 1 GB ISO). Unfortunately, I can't ...
3
votes
4answers
170 views

How can I get 'diff' to show only added and deleted lines? If diff can't do it, what tool can? Take-2

I have 2 sorted files produced by xxx>find /store -type f -print | sort > /tmp/invent.txt xxx>find /fbkup -type f -print | sort > /tmp/backup.txt I want from diff a file name list of files ...
1
vote
1answer
42 views

Find and group all unique versions of a file

I have a convoluted directory structure where there are many copies of foo.txt. I'd like to find all copies of this file and group them by their diff result, i.e. [type 1] /bar2/sub1/foo.txt /foobar/...
13
votes
11answers
7k views

How can I diff two config files?

I've got two snmpd.conf files, one on a server that works, and one that doesn't. How can I diff the two config files while stripping out irrelevant comments and newlines?
3
votes
2answers
1k views

How can I compare two directories to compare missing files, when the directories don't have the same structure?

I've been sent a HDD of new and updated files from an organisation that we are working with, but we already have most of the files sitting on our servers, and would like to update our local versions ...
1
vote
1answer
889 views

diff command for comparing files more than 2GB in solaris?

how to run recursively diff command for comparing files of file size more than 2GB in solaris?
0
votes
2answers
678 views

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 ...
1
vote
1answer
73 views

Find mysql replications diffs patterns

I'm using pt-table-checksum and pt-table-sync to check for differences in my replicas. when I use pt-table-sync with the -print option, I can only see the master values. How can I show the ...
0
votes
2answers
285 views

looking for a tricky one liner to get diff of awk output

Lets say i have two files like below: file1 a 23 b 34 c 47 file2 a justin_beiber_sucks b segmentation fault c jackson d nop Now what i want is to get a diff of the first column of two file. I'm ...
9
votes
1answer
1k views

Identifying the number of changed bytes between two ZFS snapshots of the same file

Let's assume I have a ZFS filesystem that contains virtual machine disk images, e.g. /tank/examplevm/examplevm-flat.vmdk Let's further assume I take daily snapshots of that ZFS filesystem, e.g. $ ...
3
votes
3answers
1k views

Check if all files in a directory exists elsewhere

I'm about to remove an old backup directory, but before doing so I'd like to make sure that all these files exist in a newer directory. Is there a tool for this? Or am I best off doing this "manually"...
1
vote
2answers
1k views

Difficulty restoring a differential backup in SQL Server, 2 media families are expected or no files are ready for rollforward

I have sql backups copied from server A to server B on a nightly basis. We want to move the sql server from server A to server B without much downtime, but the files are very large. I assumed that ...
13
votes
6answers
9k views

Get rsync to generate a patch file instead of copying across files?

I'm copying lots of files that have changed from one server to another using rsync. I know I can use the -n option to do a dry run, so I can see what files have been changed. However is it possible to ...
6
votes
1answer
2k views

Is there a command that produces a diff of the permissions of target files?

Just as it sounds, I'm trying to find out if there is a (standard) command that will produce a diff of the permissions between two files and/or directory trees. Ideally it would put out a patch file ...
0
votes
2answers
73 views

ubuntu server version different with desktop version [closed]

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 ...
1
vote
2answers
550 views

Is it possible to configure cloud without virtualization?

I have learned that cloud computing provides computation, software, data access, and storage services and virtualization is mandatory for cloud computing. I have also found in some places that there ...
6
votes
1answer
5k views

compare tar content with local folder

I want to compare the content of a tar archive (backup of $HOME) with the content of my local $HOME to see whether there are files in the tar file which are not yet in the local filesystem. What is ...