Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Explain difference of tar command Post 302841443 by Just Ice on Wednesday 7th of August 2013 11:42:05 AM
Old 08-07-2013
Quote:
Originally Posted by getnetha
---------- Post updated at 10:18 AM ---------- Previous update was at 10:02 AM ----------

Is the difference due to
tar -cvzf (1st fashion)
against
tar -cvjf (2nd fashion)
yes ... the 1st one uses gzip to compress the file after creating the tarball while the 2nd one uses bzip2 ... to properly compare the difference, you need to compress the resulting tarball the same way ...
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tar/Tapes: Can somebody explain this to me......

Hey Folks, Can somebody please explain what the crack is with this problem. I have a backup folder in /var which contains 4 rsync'd server folders: server08 server15 server16 server18 They all contain the etc folder from the server, and other important data I need to backup. To... (2 Replies)
Discussion started by: modaceface
2 Replies

2. UNIX for Dummies Questions & Answers

oh fork() and vfork() someone explain the difference?

Can somebody explain to me the differences between fork() and vfork() system calls using C programs which I can implement in the UNIX environement? (1 Reply)
Discussion started by: lvkchaitanya
1 Replies

3. UNIX for Dummies Questions & Answers

Can anyone explain what this command is doing?

Specifically what is the purpose of sed? What is f? Why is the 'cp f $phonefile' line needed when the script ‘goes live'? Why might that two commands following sed be commented out at the present time ( i.e., during development)? Thanks in... (2 Replies)
Discussion started by: knp808
2 Replies

4. AIX

MKSYSB + tar / on same server: difference and useless ?

Hi again, we have several types of backups we do here. On the workstations backups that we do every 3 months, we do 2 backups on each ones: mksysb and a TAR /. I need to understand better what that mksysb does and figure out if doing both is useless where only one is enough I am looking at... (1 Reply)
Discussion started by: Browser_ice
1 Replies

5. Shell Programming and Scripting

tar command dont tar to original directory

HI, if I have a tarfile called pmapdata.tar that contains tar -tvf pmapdata.tar -rw-r--r-- 0/0 21 Oct 15 11:00 2009 /var/tmp/pmapdata/pmap4628.txt -rw-r--r-- 0/0 21 Oct 14 20:00 2009 /var/tmp/pmapdata/pmap23752.txt -rw-r--r-- 0/0 1625 Oct 13 20:00 2009... (1 Reply)
Discussion started by: borderblaster
1 Replies

6. UNIX for Dummies Questions & Answers

Explain the difference between the commands cd ~smart and cd ~/smart

Is it possible for both commands to work? (1 Reply)
Discussion started by: phunkypants
1 Replies

7. UNIX for Dummies Questions & Answers

Difference between 'pax', 'tar', and cpio

Could any one please help me in understanding the difference between pax,tar and cpio. all of them basically creates archive files. (9 Replies)
Discussion started by: joshi123
9 Replies

8. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

9. UNIX for Dummies Questions & Answers

Please explain this command?

Hi, I saw this. But I don't know why we need this? ls mydir > foo.txt ## I know what this will do, it will take the results and write to the file called foo.txt ls mydir > foo.txt 2>&1 ## Don't know why we need 2>&1 Thanks. (2 Replies)
Discussion started by: samnyc
2 Replies

10. Red Hat

Please help to explain the command

su - keibatch -c ""date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201"" Not clear about : date ; /usr/local/kei/batch/apb/bin/JKEIKYK4140.sh -run "&$C$6&" WSUKE100201 Please help (2 Replies)
Discussion started by: honda_city
2 Replies
Arch::Tarball(3pm)					User Contributed Perl Documentation					Arch::Tarball(3pm)

NAME
Arch::Tarball - an interface to create and work with tarballs SYNOPSIS
use Arch::Tarball my $tarball = Arch::Tarball->new; my $pipe = $tarball->create( dir => '/path/to/subdir-to-pack', base_name => 'new-subdir-to-pack', pipe => 1, ); DESCRIPTION
Arch::Tarball provides an object oriented interface to work with (create, examine or extract) standard gzipped tarballs. Note: As functionality is added only when needed, a lot of features are currently not implemented. METHODS
The following functions are available: new, create, extract, list. new %opts Creates a new Arch::Tarball object. The following parameters can be set via %opts: tar The name of the tar executable. Defaults to "tar". file The filename of the Tarball. create %opts Creates a new tarball (tar.gz) from a given directory structure. create understands the following options: dir (mandatory) Specifies the base directory for the tarball. The given directory and recursively its content will be added to the tarball. The directory's basename will be used as the first and the only subdirectory in the tarball. base_name Allow the programmer to specify a different base directory name for the tarball content than the basename of dir. In this case, 'cp' process is launched to temporarily rename the last element of dir. pipe When set, create does not create a physical tarball but writes the tarballs content to a newly created pipe. The pipe is returned by the create method. Note: Currently the pipe option is mandatory. extract %opts Extracts the tarball to a given target directory, specified by dir option. If dir option is not given, a temporary directory is created that will hold the extracted dirs/files. This directory is returned. The file option specifies the tarball file name. It may be given in the constructor instead. list %opts (not implemented yet) Returns a list of files and directories in the tarball. BUGS
Most functionality is currently not implemented. If you need part of the missing functionality, please contact the authors. Patches are greatly appreciated. AUTHORS
Mikhael Goikhman (migo@homemail.com--Perl-GPL/arch-perl--devel). Enno Cramer (uebergeek@web.de--2003/arch-perl--devel). perl v5.10.1 2005-04-22 Arch::Tarball(3pm)
All times are GMT -4. The time now is 10:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy