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
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 chanages has been made.
#!/bin/bash
if [ ! -f…
su
0
votes
0 answers
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 stdin to disk.
GNU "tar --diff" is almost what I…

user1084684
- 155
- 1
- 7
0
votes
1 answer
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 -u -N /tmp/LIVE-022965340/apps.v1.Deployment.……

Grilse
- 105
- 3
-1
votes
3 answers
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 15 of 20 files are identical. I want to see the five…

guettli
- 3,591
- 17
- 72
- 123
-1
votes
2 answers
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 -1aR /home/spyros/Daily-Backup') <(ssh root@1.1.1.1…

J.S
- 1
-1
votes
1 answer
Diff with 2 files
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 below should be 2 correct / 3 in-correct.
I have 2…

Beginner
- 1
- 3
-1
votes
3 answers
what is the difference between Linux and Unix "in general" and "command-line"?
if anyone can Summarized the difference between Linux and Unix in general and in command-line in particular

Mohammad AL-Rawabdeh
- 1,612
- 12
- 33
- 54
-4
votes
1 answer
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 please tell me how to do it? May i know how can I…