05-30-2019
Lose the "z"
tar xf somefile.gz
assuming Linux, tar figures out what decompression to use.
These 2 Users Gave Thanks to jim mcnamara For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi All,
I have created a tar file by giving the below command :
all files of directory : /Accounts/2001/10/26
$tar -cvf Act26.tar /Accounts/2001/10/26
I copied into another server and given the following command:
$tar -xvf Act26.tar
then permision denied message came due to the... (3 Replies)
Discussion started by: krishna
3 Replies
2. UNIX for Dummies Questions & Answers
Hi!
I've uploaded a .tar file (created with Windows) containing my homepage to my webserver.
Now I'd like to extract the file on the server. I can do that with SSH.
BUT::
If i enter this command:
tar -xf homepage.tar
only the files in the root directory of the file get extracted.... (2 Replies)
Discussion started by: roberthawke
2 Replies
3. UNIX for Advanced & Expert Users
Hi,
when I extract a TAR archive by tar -xf file.tar
the file.tar file stays on disk. Then I need two time the disk space.
How can I avoid that ? How to ask not to keep file.tar ?
Many thanks. (8 Replies)
Discussion started by: big123456
8 Replies
4. UNIX for Dummies Questions & Answers
Hi, I am Nico.
I have a tarball that i can't extract.
I have this file: FlussiIbox.20060215.tar
when i write "tar tf FlussiIbox.20060215.tar"
the output is:
/u01/USCITA/jobs/SUNRISE/output/IBOX.counter.20060212.dat.gz
/u01/USCITA/jobs/SUNRISE/output/IBOX.counter.20060213.dat.gz... (1 Reply)
Discussion started by: volleyboy
1 Replies
5. Shell Programming and Scripting
hi all,
kindly help me how to extract one file form .tar.gz without uncompressing .tar.gz file.
thanks in advance
bali (2 Replies)
Discussion started by: balireddy_77
2 Replies
6. UNIX for Dummies Questions & Answers
I've got this Files.tgz containing
Fruits/Apple.txt
Drinks/Soda.txt
Drinks/Pepsi.txt
I would like to extract all files/directories with pattern "Fruits".
So, what I did was
tar -xvf File.tgz `tar -tf Files.tgz | grep 'Fruits'`
However, output is:-
Files/Fruits... (8 Replies)
Discussion started by: percivalwcy
8 Replies
7. UNIX for Dummies Questions & Answers
I need to extract a file,which contains the path to a new path.
sample tar file
tar -tfv class.tar | grep client
-rw------- 0/1 99 Jan 22 12:46 2004 /usr/openv/netbackup/db/class/mariner/clients
-rw------- 0/1 102 Sep 25 11:33 2007... (1 Reply)
Discussion started by: jouuu
1 Replies
8. Linux
Hi,
how can I extract glibc-2.3.2.tar.tar file ?
I used tar -xf but does not work.
Thank you. (4 Replies)
Discussion started by: big123456
4 Replies
9. UNIX for Dummies Questions & Answers
I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it.
Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem?
tar tvf file1.tar
... (1 Reply)
Discussion started by: vivien_chu
1 Replies
10. UNIX for Advanced & Expert Users
I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option.
tar -xZvf /opt/Nimsoft/nimldr.tar.Z
tar (child): compress: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now... (2 Replies)
Discussion started by: cokedude
2 Replies
LEARN ABOUT CENTOS
bf_tar
BF_TAR(1) Bogofilter Reference Manual BF_TAR(1)
NAME
bf_tar - shell script to write a tar file of a bogofilter directory to stdout
SYNOPSIS
bf_tar [-r] [-R] bogofilter_directory
DESCRIPTION
bf_tar bundles a bogofilter working directory in tar format and copies it to standard output (your console, or where you redirect it, see
EXAMPLES below).
OPTIONS
The -r option causes bf_tar to remove inactive log files after the archive has been written successfully. The default is to leave log
files.
The -R option causes bf_tar to remove inactive log files before the archive is written. This may reduce chances that the resulting archive
is recoverable should it become damaged. The archive may be smaller though. The default is to leave log files.
EXIT STATUS
The script exits with status code 0 if everything went well, and nonzero if it encountered trouble.
EXAMPLES
o bf_tar ~/.bogofilter > outfile.tar
Writes a standard .tar file containing the essential files from ~/.bogofilter to outfile.tar.
o bf_tar ~/.bogofilter | gzip -9 -c > outfile.tar.gz
Writes a gzipped .tar.gz file containing the essential files from ~/.bogofilter to outfile.tar.gz.
o bf_tar `pwd`/mydirectory > outfile.tar
Prepend $(pwd)/ or `pwd`/ if you want to specify an absolute path instead of a relative path.
NOTES
This script is meant for use with Berkeley DB based bogofilter versions.
This script requires a SUSv2 compliant pax utility.
This script expects a SUSv2 compliant shell. Solaris systems should have the SUNWxcu4 package installed (when bogofilter is configured) so
that /usr/xpg4/bin/sh can be used.
AUTHORS
Matthias Andree
Bogofilter 10/22/2012 BF_TAR(1)