All Questions
5 questions
2
votes
1
answer
3k
views
How to ignore timestamp of the files while performing diff operation
I created a file named me.txt with text
This is dummy text
Then I made a TAR out of it and named me.txt.tar.
Now after a minute I again created a file with exactly same name and the text (basically I ...
0
votes
0
answers
374
views
Comparing Files inside Tar on Unix
I want to know how can I compare some files inside a tar one with these same files in one directory and if these file exists in the directory, proceed to delete them.
I tried using diff and tar -tvf ...
6
votes
2
answers
4k
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 ...
6
votes
2
answers
19k
views
How to compare two tar archives (including file content, new/removed files, symlinks)?
I have two tar archives (compressed or not compressed), and I want to find all differences in the two archives. Both archives contain a complete file system (i.e. when unpacked, would generate ...
7
votes
3
answers
5k
views
diff a gzipped tarball against a directory?
Is there a way I can diff a gzipped tarball against an existing directory?
I would like to be able to do it without extracting the data from the tarball.