Be sure to make the root directory of the restore your PWD before, because "tar" will unpack in the current directory if you tarred with relative paths (as is advised).
Hello
I'm trying to use a combination of gunzip and tar to unpack and unzip a *.tar.gz file. I tried gunzip ~/myfile.tar.gz | gtar -x
This will unzip the file, but it won't unpack. Any hints?
thanks a lot
Dan (5 Replies)
I am using IRIX 6.5.11 and tcsh. I have created an arcihive by using the command "tar -cvf - /stuff/ /more/stuff|gzip --best>/stuff.tar.gz"
It made an archive of my files without taking up huge amounts of disk space with uncompressed files.
How do I extract files from the archive without... (2 Replies)
Hello,
I am performing a checksum on our software we have installed on a unix solaris 2.0 os.
If the checksum generated report is not the same as a 'Gold' report we have on disk. Then our software is deleted, and reinstalled.
The problem I am having is if you run the program again, the... (3 Replies)
gunzip fnam.tar.gz
After this command execution... .gz file no longer exists... and only fnam.tar is present.
Is it possible to retain the tar.gz file after after using the above command
thx in advance. (4 Replies)
Hi,
I have a tar file with naed ass bcs.tar.gz downlaoded to my work station and It contains all the .c files and .o which i needed. when i am trying to unzip this one i am facing directory checksum error.
What does it mean.How to resolve this.
I tried with tar -xf and tar -tvf... (2 Replies)
I am faced with a situation where I have directories of gunzipped contents bundled into a tar file. It might look something like this.
x coop/batch/bin/ha90x20.gz, 632641 bytes, 1236 tape blocks
x coop/batch/icm/HA90X20.icm.gz, 1821 bytes, 4 tape blocks
x coop/batch/aeenv.gz, 4117 bytes, 9 tape... (2 Replies)
OS: HP-UX
Programs I want to install: expect and tcl
I'm lost.
I bought the book.
I began reading the book.
I want to install expect.
I've been able to download the .z, and extract it successfully.
But, of course, it apparently needs tcl and possibly tk also, and ... I... (0 Replies)
Hello,
Directory name : FIRST ( 28 files - directory size 27043 Mo )
Here is what I ve done :
tar cvf FIRST.tar FIRST Then
gzip FIRST.tar So far evrything's fine
then, I've used GUNZIP and extract the TAR. I used DIFF to check if there is no difference between files (extrat Vs... (1 Reply)
Hi
I wanted to tar and gunzip a file named backup
tar: backup.tar: Wrote only 2244 of 10240 bytes
tar: Error is not recoverable: exiting now
Please tell me what I am doing wrong?
Please do help. (4 Replies)
Discussion started by: sonia102
4 Replies
LEARN ABOUT PLAN9
tar
TAR(1) General Commands Manual TAR(1)NAME
tar - archiver
SYNOPSIS
tar key [ file ... ]
DESCRIPTION
Tar saves and restores file trees. It is most often used to transport a tree of files from one system to another. The key is a string
that contains at most one function letter plus optional modifiers. Other arguments to the command are names of files or directories to be
dumped or restored. A directory name implies all the contained files and subdirectories (recursively).
The function is one of the following letters:
c Create a new archive with the given files as contents.
x Extract the named files from the archive. If a file is a directory, the directory is extracted recursively. Modes are restored if
possible. If no file argument is given, extract the entire archive. If the archive contains multiple entries for a file, the lat-
est one wins.
t List all occurrences of each file in the archive, or of all files if there are no file arguments.
r The named files are appended to the archive.
The modifiers are:
v (verbose) Print the name of each file treated preceded by the function letter. With t, give more details about the archive entries.
f Use the next argument as the name of the archive instead of the default standard input (for keys x and t) or standard output (for
keys c and r).
u Use the next (numeric) argument as the user id for files in the output archive. This is only useful when moving files to a non-Plan
9 system.
g Use the next (numeric) argument as the group id for files in the output archive.
EXAMPLES
Tar can be used to copy hierarchies thus:
{cd fromdir; tar c .} | {cd todir; tar x}
SOURCE
/sys/src/cmd/tar.c
SEE ALSO ar(1), bundle(1), tapefs(1)BUGS
There is no way to ask for any but the last occurrence of a file.
File path names are limited to 100 characters.
The tar format allows specification of links and symbolic links, concepts foreign to Plan 9: they are ignored.
TAR(1)