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).
99 questions
1
vote
1
answer
283
views
How can I list the files that are in one S3 bucket but not in the other bucket?
I have two AWS S3 buckets that have mostly the same content but with a few differences. How can I list the files that are in one bucket but not in the other bucket?
0
votes
1
answer
228
views
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.
...
1
vote
1
answer
1k
views
Efficient way of determining whether 2 directories have ANY difference?
I'd like to recursively compare two directory trees that are expected to be identical, but I don't want a full comparison which would take forever. I'd like to do an efficient comparison so that as ...
0
votes
0
answers
82
views
Diff a tarball on stdin against a directory hierarchy?
I have a multi-terabyte filesystem I want to diff against a multi-terabyte tar file. The tar file is only available from stdin - no seeking allowed. I do not have the disk space to write the tar on ...
1
vote
0
answers
384
views
Compare 2 Directories and Move Differences to a Third directory
Running Ubuntu 20.04 and want to compare two directories called 1 and 2 and move differences to a separate directory called 3, ideally conserving the subdirectories.
I am able to get almost the ...
0
votes
1
answer
2k
views
kubectl diff on PowerShell?
kubectl can diff configuration (blog, docs).
On Linux, this works fine (WSL, Ubuntu 18, bash). It gives me sensible output similar to the following.
$ kubectl diff --filename some-resources.yaml
diff -...
1
vote
1
answer
2k
views
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 ...
1
vote
2
answers
2k
views
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:
...
0
votes
1
answer
293
views
diff gives all-different, but human compare shows equalities
I have 2 files
a:
2 m1.small
1 m3.large
2 m3.medium
2 t1.micro
1 t2.large
7 t2.medium
4 t2.micro
7 t2.small
and b:
1 c4.2xlarge
1 c4.large
...
2
votes
2
answers
6k
views
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 ...
0
votes
1
answer
62
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....
-1
votes
3
answers
151
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
1
answer
163
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
2
answers
133
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 -...
0
votes
2
answers
2k
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
...