08-19-2013
here is the output of tar and the os version:
Quote:
-bash-3.2$ tar -xvzf rsync-3.0.9.tar.gz
tar: z: unknown function modifier
Usage: tar {c|r|t|u|x}[BDeEFhilmnopPqTvw@[0-7]][bfk][X...] [blocksize] [tarfile] [size] [exclude-file...] {file | -I include-file | -C directory file}...
-bash-3.2$ uname -a
SunOS usa0300uz1226 5.10 Generic_148888-01 sun4u sparc SUNW,SPARC-Enterprise
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
While uncompress , gunzip filename.cpio.gz getting the fg. error
gunzip: filename.cpio.gz: unexpected end of file.
Whats the problem?
Size of this .gz file is 660mb .
Thanks, (1 Reply)
Discussion started by: Dolly
1 Replies
2. UNIX for Advanced & Expert Users
Ok, I sent several gzipped files using the UNIX "mail" utility without any special settings (bad idea). When I saved these files from my mail and tried to gunzip them, I would get something like the following error:
gunzip: wmGrep.mel.gz: unexpected end of file
Ok, I messed up. But is it... (4 Replies)
Discussion started by: sicjedi
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have a zipped Oralce software (linux.x64_11gR1_database.zip) and I need to unzip it. On the Linux server, I only see the gunzip utility listed:
$ ls -ltr *zip*
-rwxr-xr-x 3 root root 60320 Jan 15 2008 gzip
-rwxr-xr-x 3 root root 60320 Jan 15 2008 gunzip
Can I use the command... (1 Reply)
Discussion started by: syang68
1 Replies
4. Solaris
I've downloaded the tomcat from the link below and ftp to Solaris by ftp in binary mode
Ref: Index of /dist/jakarta/tomcat-5/v5.0.30/bin
gunzip -c jakarta-tomcat-5.0.30.tar.gz | tar -xvf -
gunzip: jakarta-tomcat-5.0.30.tar.gz: unexpected end of file
tar: read error: unexpected EOF
... (8 Replies)
Discussion started by: sbox
8 Replies
5. AIX
Hi guys,
This is my 1st post here. I tried to Google around but failed to get my solution. So I hope you guys could help me. (I have just a basic unix background for 2years so I'm sorry if im asking stupid questions)
OS - Aix 6.1, 64 bits.
Server - currently I only have telnet access to a... (12 Replies)
Discussion started by: pilotHans
12 Replies
6. Shell Programming and Scripting
Hi all,
I have a folder hierarchy with many gz files in them. I would like to recursively decompress them, but keep the original files. I would also like to move all the decompressed files (these are very large HDF5 files with .CP12 extension) to another data folder.
Currently I am using four... (3 Replies)
Discussion started by: gansvv
3 Replies
7. Shell Programming and Scripting
I have a set of folders inside which there may be n number of files. All those files are in .gz extension. Now I need to search all the files without gunzip them. Also I need to read the content of a file if the search pattern is found without gunzip them. (3 Replies)
Discussion started by: realspirituals
3 Replies
8. Shell Programming and Scripting
i am working on unix - ksh
trying to unzip a .gz file
and when i executed the below, in my command prompt in ksh
gunzip abc.gz
it was throwing the message below:
gunzip: abc.gz: unexpected end of file -
pls advise what is the reason for it..i am pretty sure the .gz file had no issues. (3 Replies)
Discussion started by: billpeter3010
3 Replies
9. Solaris
Hello All,
I'm trying to write a script to load the MySQL DB from a dump file but the unzipping doesnt seem to work, not sure whats the issue, i get below error
bash>gunzip mysql2-dump.gz
gunzip: mysql2-dump: File too large
bash >
can anyone pls let me know how to sort this out?
... (2 Replies)
Discussion started by: Mahesh_RPM
2 Replies
10. Red Hat
Linux 3.8.13-16.2.1.el6uek.x86_64 #1 SMP Thu Nov 7 17:01:44 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
Hi all,
I am unable to extract .gz file using gunzip
Used the following command to create the .gz file:
nohup tar -cvpf - 11.2.0.4 | gzip -c >... (3 Replies)
Discussion started by: a1_win
3 Replies
LEARN ABOUT DEBIAN
funzip
FUNZIP(1) General Commands Manual FUNZIP(1)
NAME
funzip - filter for extracting from a ZIP archive in a pipe
SYNOPSIS
funzip [-password] [input[.zip|.gz]]
ARGUMENTS
[-password]
Optional password to be used if ZIP archive is encrypted. Decryption may not be supported at some sites. See DESCRIPTION for more
details.
[input[.zip|.gz]]
Optional input archive file specification. See DESCRIPTION for details.
DESCRIPTION
funzip without a file argument acts as a filter; that is, it assumes that a ZIP archive (or a gzip'd(1) file) is being piped into standard
input, and it extracts the first member from the archive to stdout. When stdin comes from a tty device, funzip assumes that this cannot be
a stream of (binary) compressed data and shows a short help text, instead. If there is a file argument, then input is read from the speci-
fied file instead of from stdin.
A password for encrypted zip files can be specified on the command line (preceding the file name, if any) by prefixing the password with a
dash. Note that this constitutes a security risk on many systems; currently running processes are often visible via simple commands (e.g.,
ps(1) under Unix), and command-line histories can be read. If the first entry of the zip file is encrypted and no password is specified on
the command line, then the user is prompted for a password and the password is not echoed on the console.
Given the limitation on single-member extraction, funzip is most useful in conjunction with a secondary archiver program such as tar(1).
The following section includes an example illustrating this usage in the case of disk backups to tape.
EXAMPLES
To use funzip to extract the first member file of the archive test.zip and to pipe it into more(1):
funzip test.zip | more
To use funzip to test the first member file of test.zip (any errors will be reported on standard error):
funzip test.zip > /dev/null
To use zip and funzip in place of compress(1) and zcat(1) (or gzip(1) and gzcat(1)) for tape backups:
tar cf - . | zip -7 | dd of=/dev/nrst0 obs=8k
dd if=/dev/nrst0 ibs=8k | funzip | tar xf -
(where, for example, nrst0 is a SCSI tape drive).
BUGS
When piping an encrypted file into more and allowing funzip to prompt for password, the terminal may sometimes be reset to a non-echo mode.
This is apparently due to a race condition between the two programs; funzip changes the terminal mode to non-echo before more reads its
state, and more then ``restores'' the terminal to this mode before exiting. To recover, run funzip on the same file but redirect to
/dev/null rather than piping into more; after prompting again for the password, funzip will reset the terminal properly.
There is presently no way to extract any member but the first from a ZIP archive. This would be useful in the case where a ZIP archive is
included within another archive. In the case where the first member is a directory, funzip simply creates the directory and exits.
The functionality of funzip should be incorporated into unzip itself (future release).
SEE ALSO
gzip(1), unzip(1), unzipsfx(1), zip(1), zipcloak(1), zipinfo(1), zipnote(1), zipsplit(1)
URL
The Info-ZIP home page is currently at
http://www.info-zip.org/pub/infozip/
or
ftp://ftp.info-zip.org/pub/infozip/ .
AUTHOR
Mark Adler (Info-ZIP)
Info-ZIP 20 April 2009 (v3.95) FUNZIP(1)