All Questions
11 questions
0
votes
1
answer
779
views
When is mandatory use the "--keep-newer-files" option for the tar command?
About the tar command
Introduction
Having for example:
source
numbers
001.txt # with the 111 content
002.txt # with the 222 content
003.txt # with the 333 content
If is created the numbers.tar....
5
votes
1
answer
5k
views
How to extract the tar.gz file but without overwriting existing files?
With the unzip -n /path/to/filename/filename.zip command the compressed file is uncompressed but does not overwrite existing files. This approach is useful when the same compressed file was ...
1
vote
1
answer
2k
views
tar create: How to avoid to show the "tar: Removing leading `/' from member names" message in the terminal?
About the tar command
If is executed the command:
tar -czf numbers.tar.gz numbers
The numbers.tar.gz file is created - from the numbers - in the current directory
But for script purposes - by testing ...
0
votes
1
answer
3k
views
Why tar command uses gzip command through 'z' option?
In Linux Ubuntu about the 'tar' command for these versions:
tar -tzf /path/to/filename.tar.gz # Show the content
tar -xzf /path/to/filename.tar.gz # Extract the content
Observe both commands use ...
-1
votes
1
answer
841
views
Difference between GNU tar's --transform and --xform options
What is the main difference between GNU tar --transform to --xform?
From reading the GNU tar manual, I assume they might be the same and the latter is a "sugar syntax".
0
votes
2
answers
3k
views
correct order while combining different options of a command
I usually combine options together whenever there are more than one option to be used with respect to some command. For example , if i want to create an archive using tar i will write tar -cvf archive....
7
votes
2
answers
2k
views
What is the rationale for using -f in tar [duplicate]
From man tar:
-f, --file ARCHIVE
use archive file or device ARCHIVE
Please consider:
tar -zxvf myFile.tar.gz
As far as I understand, z means "gzipped tarball", x means "extract", v means "...
14
votes
4
answers
10k
views
Portable way to invoke tar with a list of files from stdin
I want to create a .tgz from the content of a directory. I also want to strip the leading "./" from the tar'ed content.
I had done this as follows:
cd /path/to/files/ && find . -type f | cut -...
8
votes
3
answers
4k
views
Why does the specific sequence of options matter for tar command?
I was trying out tar command to make archive with .tar extension.
please have a look at the following series of commands I tried:
$ ls
abc.jpg hello.jpg xjf.jpg
$ tar -cfv test.tar *.jpg
tar: test....
7
votes
1
answer
5k
views
in which units does tar --checkpoint measure?
GNU tar offers the option --checkpoint where a message should be printed each checkpointreached.
Question:: In what does --checkpoint measure?
My best guess is Bytes.
I wasn't able to find a hint ...
28
votes
3
answers
42k
views
tar cvf or tar -cvf?
I have learned to use tar without '-' for options, like tar cvfz dir.tar.gz Directory/ but I recently came accross the slightly different tar -czvf syntax (I think the 'f' must be the last option in ...