02-29-2008
A collegue found a work around - he created a link file in the top level directory (as root) that pointed to some other place, and when I ran the noraml untar, all the data came out as I wanted it.
I agve up trying to get just one file out of the tarball.
Thought I'd just post this for the sake of completness.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi everyone
i have a tar file which was in AIX box. its 300mb.
i cant untar in windowsxp home. I just get an empty folder with no files when i extract. i dont get any bad header or any such error.
i am using IZARC which is a freeware. Not sure if i should try winzip or winrar.
any help (2 Replies)
Discussion started by: bryan
2 Replies
2. 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
3. UNIX for Advanced & Expert Users
In order to save diskspace and avoid of disk full during
unzip then extract the tar file
is there any tar unzip command would unzip and extract tar at the same time
(test123.tar.gz)
thank in advance (6 Replies)
Discussion started by: darkrainbow
6 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I want to view/display the contents of one file in tar file.
For example if the tar file is sam.tar.gz and one of the file inside is E1.txt, how do i view the contents of this E1.txt file.
Olso if I want to extract the E1.txt file only from sam.tar.gz how can i do that.
Thanks in... (7 Replies)
Discussion started by: icefish
7 Replies
5. UNIX for Advanced & Expert Users
Hi ,
I need to extarct only a particulay files from the tar.Z.
ie
i need to extract one.txt from test.tar.Z.
The test.tar.Z may contain lot of file and folders.
Please help me to extract particular file to some location.
Regards,
Kalai. (1 Reply)
Discussion started by: kalpeer
1 Replies
6. UNIX for Dummies Questions & Answers
Hello
I take a backup using the following command on Solaris 9
tar cvf /dev/rmt/0n data
the data volume contains a number of files say a, b, c , d ... etc
Now I want to restore only one file (eg b) from the data volume.
When I issue the command
tar xvf /dev/rmt/0n data/b... (1 Reply)
Discussion started by: rahmantanko
1 Replies
7. 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
8. Shell Programming and Scripting
Hi,
I need to extract a single file from a tar file to another directory.
So far I have this:
This one extract a single file to same directory:
tar -xvf filename.tar ./file.txt
I tried this but its not working
tar -xvf filename.tar /home/dir ./file.txt
or this: (6 Replies)
Discussion started by: erin00
6 Replies
9. Shell Programming and Scripting
OS : Fedora Linux 26
Shell : bash
I have a file with around 5000 lines like below.
file /usr/share/icons/Papirus/16x16/actions/papirus-icon-theme-20180501-1.noarch conflicts with file ...
file /usr/share/icons/Papirus/16x16/actions/align-horizontal-left-to-anchor.svg conflicts between... (7 Replies)
Discussion started by: John K
7 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 LINUX
shtool-tarball
SHTOOL-TARBALL.TMP(1) GNU Portable Shell Tool SHTOOL-TARBALL.TMP(1)
NAME
shtool-tarball - GNU shtool command for rolling standardized tarballs
SYNOPSIS
shtool tarball [-t|--trace] [-v|--verbose] [-o|--output tarball] [-c|--compress prog] [-d|--directory directory] [-u|--user user]
[-g|--group group] [-e|--exclude pattern] path [path ...]
DESCRIPTION
This command is for rolling input files under path into a distribution tarballs which can be extracted by tar(1).
The four important aspects of good open source software tarballs are: (1) unpack into a single top-level directory, (2) top-level directory
corresponds to the tarball filename, (3) tarball files should be sorted and (4) arbitrary names for file owner and group.
OPTIONS
The following command line options are available.
-v, --verbose
Display some processing information.
-t, --trace
Enable the output of the essential shell commands which are executed.
-o, --output tarball
Output tarball to file tarball.
-c, --compress prog
Pipe resulting tarball through compression program prog.
-d, --directory directory
Sets the top-level directory into which the tarball unpacks. By default it is tarball without the trailing ".tar.*" extension.
-u, --user user
The user (owner) of files and directories in the tarball to user.
-g, --group group
The group of files and directories in the tarball to group.
-e, --exclude pattern
Exclude files and directories matching comma-separated list of regex pattern from the tarball. Directories are expanded before the
filtering takes place. The default filter pattern is ""CVS,\.cvsignore,\.svn,\.[oa]$"".
EXAMPLE
# Makefile.in
dist:
...
V=`shtool version -d short ...`;
shtool tarball -o foobar-$$V.tar.gz -c 'gzip -9'
-u bar -g gnu -e 'CVS,.cvsignore' .
HISTORY
The GNU shtool tarball command was originally written by Ralf S. Engelschall <rse@engelschall.com> in 1999 for GNU shtool.
SEE ALSO
shtool(1), tar(1), compress(1).
18-Jul-2008 shtool 2.0.8 SHTOOL-TARBALL.TMP(1)