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

-1
votes
3answers
384 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
2
votes
2answers
314 views

Diff always fail to apply patch of files I make?

I have some files in my server that I wanted to make a patch for, so I took one of the files to test: cp /path/file ~/file So now I have just the same file in my root directory so I make any ...
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
1answer
711 views

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 ...
4
votes
1answer
4k 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 ...
2
votes
3answers
642 views

diff for binary files

I have a folder with one big file. This is a file that changes each day. Using tar for incremental backups is not a good idea as that big file (each file that is changed is saved) will be copied each ...
0
votes
4answers
971 views

linux diff command options

diff cookies.old cookies.new 5c5 < One cup vanilla extract --- > One teaspoon vanilla extract 7d6 < Six ounces chopped liver 21a22 Any flags/options can help me get rid of this 5c5, 7d6, ...
1
vote
2answers
931 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 ...
15
votes
2answers
10k views

Difference between `curl -I` and `curl -X HEAD`

I was watching the funny server type from http://www.reddit.com with curl -I http://www.reddit.com when I guessed that curl -X HEAD http://www.reddit.com would do the same. But, in fact, it doesn't. ...
1
vote
1answer
296 views

How do I make sdiff ignore the * character?

Here's what I'm sure is an easy one, but I can't figure it out. I have two files: file1: You are in a maze of twisty little passages, all alike file2: You are in a maze of twisty little* passages, ...
3
votes
2answers
2k 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 ...
12
votes
6answers
10k 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?
0
votes
2answers
461 views

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 ...
0
votes
2answers
165 views

diff script command to mail

Is there a way to add a command to mail this if it finds any changes in the /newchanes.list. mail with an attachment(/changes) saying it found changes and if not then the subject line would say: no ...
3
votes
3answers
815 views

help with bash script using find and diff command

i have a bash script that i need help with: #!/bin/bash if [ -f "/suid.old" ] then find / -perm -4000 -o -perm -2000 ls > suid.old else find / -perm 4000 -o -perm -2000 ls > suid.new diff ...
23
votes
6answers
727 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 ...
1
vote
4answers
1k 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
2answers
7k 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 ...
2
votes
3answers
144 views

“One-sided” diff

I've got two large directory trees--think years of client work for an agency. One is old and out of date; the other is larger and in current use. I'd like to delete the former, but I want to be sure ...
0
votes
1answer
1k views

Differencing Disks in VirtualBox

I'm struggling to understand how to do differencing disks in VirtualBox v3.1.0. I've created a Windows 2008 Server, but now I want to use that as a base image for a number of other servers. The help ...
7
votes
7answers
1k views

Different files of two directories

There are two directories I'd like to compare. I tried diff but it includes the changes inside the files. All I want is something like this file a is just in /A file b is missing in /A file c ...
0
votes
1answer
237 views

SQL Server connection issue

I am learning from http://msdn.microsoft.com/en-us/library/ms143432.aspx, my question is what is the differences between "Connections per client" and "user connection"?
26
votes
6answers
28k 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?
2
votes
3answers
3k views

rsync -c -i flags identical files as different

My goal: given a list of files on local server, show any differences to the files with the same absolute path on remote server; e.g. compare local /etc/init.d/apache to same file on remote server. ...
1
vote
3answers
541 views

Log Backup required even if we take Full + Differential File backup?

Here is what I am doing, Take full FILE backup at 1.00 AM Take differential FILE backup every 15 minutes And we ftp all data to other location and restore everything there So now from My Source ...
11
votes
6answers
7k 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 ...
97
votes
14answers
53k views

How do diff over ssh?

How do I diff files/folders across machines provided that the only connectivity available is ssh?
2
votes
1answer
2k views

Can you update a Hyper-V parent differencing disk to push updates to all children?

I have a Windows 2008 Datacenter server where I plan on creating dozens of VMs all using the same base Windows 2003 OS with some preinstall components and updates. I was wondering, 1) What are the ...
0
votes
2answers
2k views

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 ...
0
votes
4answers
356 views

best syncing tool [closed]

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

diff folders and copy results over

We use a third party newsletter system which updates frequently, usually around 100 files. Each time all the developers release is the whole application again with a changelog but there's usually too ...
13
votes
11answers
5k 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?