Questions tagged [diff]

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

98 questions
3
votes
3 answers

Compare two folder content

How can I compare two folder content under linux. I'm using diff but I want to display only the files with the same names.
Mokus
  • 412
  • 1
  • 11
  • 20
3
votes
3 answers

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 suid.old suid.new > newchanges.list fi when i run it it…
su
3
votes
4 answers

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 just send the changed file - I need to send the…
ggambetta
  • 229
  • 3
  • 7
2
votes
2 answers

Powershell find orphaned processes

I am looking for a way to find processes that do not have a parent process running (orphaned processes). Im attempting to do this using win32_process. I have the query that returns the attributes needed, its the comparison im struggling with: gwmi…
user367081
  • 21
  • 1
  • 2
2
votes
1 answer

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 do: $ tar xvf Documents.tar -C untarDocs $ diff -r…
marcanuy
  • 268
  • 1
  • 4
  • 11
2
votes
2 answers

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 each, we'd like to figure out what tools/ ways could we…
Alex S
  • 241
  • 2
  • 13
2
votes
3 answers

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. "Difference" for me means different checksum. I…
Scott
2
votes
1 answer

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 pros and cons to creating a parent VHD and using…
Chris Thompson
  • 537
  • 1
  • 13
  • 22
2
votes
2 answers

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 compare the ACLs on files and directories, not the file…
DaveBurns
  • 205
  • 1
  • 3
  • 7
2
votes
2 answers

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 changes I need on the file at ~/file and now I run the…
Prix
  • 4,881
  • 3
  • 24
  • 25
2
votes
3 answers

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 day that an incremental backup is made. Is there…
user28362
  • 556
  • 3
  • 7
  • 21
2
votes
2 answers

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 performing a differential backup and restore would…
digiguru
  • 235
  • 2
  • 14
2
votes
3 answers

"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 that the latter is truly a superset of it (I…
justinbach
  • 151
  • 2
1
vote
1 answer

Diff local directory and svn repository without checking out the files

Is it possible to diff a local directory (not a svn checkout) and a remote svn repository without checking out the repository to another local directory beforehand? I need it for linux (debian) but the question is in general.
Bojan Hrnkas
  • 143
  • 11
1
vote
2 answers

shasum of tar file different on os x / ubuntu although files are identical

I have a problem that brings me to despair and is plaguing me for the last days and I hope somebody can give me a hint what I have overlooked, since bash/sh is not a field I work in everyday: Scenario: I have a project developed in OS X 10.11.6,…
hreimer
  • 181
  • 1
  • 2
  • 10