doubt reg gzip,gunzip


 
Thread Tools Search this Thread
Operating Systems Solaris doubt reg gzip,gunzip
# 1  
Old 04-14-2009
doubt reg gzip,gunzip

Hi,

Can anyone let me explain the difference between tar , uncompress,gzip and gunzip commands.

both gzip and gunzip are same i think correct me if am wrong.
rogerben
# 2  
Old 04-14-2009
tar - Tape ARchiver. Originally intended to write/read files to/from a tape device. Does not support compression
compress/uncompress - Uses LZC compression, can handle only single files, used together with tar to create compressed archives (what Windows-users would call "zipping")
gzip/gunzip - Uses the DEFLATE algorithm, otherwise behaves like compress
bzip2/bunzip2 - Uses a lossless compression algorithm, otherwise behaves like compress

The reason that gzip and gunzip seem to be the same is because they are the same. On most systems there's only a gzip executable, with gunzip being a link to that. What to do by default (compressing/decompressing) is decided by the name it was executed as. Same for bzip2/bunzip2. You can check this by running
Code:
$ ls -l `which gzip`
$ ls -l `which gunzip`

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting logs using gunzip awk and gzip

Hi All I am trying to use a hard coded script into shell scripting but I am unable to . Kindly find the Script below along with the command Please help gunzip -c FilePath/FileName_*.gz | awk '$0 > "" && $0 < ""'|\ gzip >> FilePath/Outputfile.log.gz I Am trying to use this... (9 Replies)
Discussion started by: pulkitbahl
9 Replies

2. UNIX for Dummies Questions & Answers

gzip-gunzip a problem

Hi all, i have a gzipped file. <file_name>.gz . when i try gunzip this file i get, invalid compressed data--format violated this file gzipped like gzip -f -S <file_name> 2 > <error_log_file> there is no error in log. it seems that the file gzipped properly. how this ... (3 Replies)
Discussion started by: dummydba
3 Replies

3. Solaris

doubt reg Netprobe

Can anyone explains me what is the basic functionality of Netprobe service. How to find the netprobe status whether it is running or stopped.. Only start|stop|restart option is there. (5 Replies)
Discussion started by: rogerben
5 Replies

4. UNIX for Dummies Questions & Answers

doubt reg SCP

Hi , I have a doubt reg SCP . For eg.. FileA is in host1 .Is it possible to receive fileA by logging to host2 using SCP.. Please let me know what is the major difference between scp and sftp.. We can use both for file transfer(correct me if am wrong) (4 Replies)
Discussion started by: rogerben
4 Replies

5. Solaris

doubt reg Minfree.

Hi When setting minfree to a certain percentage using the tunefs command, does this actually prevent users from accesing the partition when the limit is reached or not?.. It is a separate file system or not More clarification regarding minfree will be useful for me . (6 Replies)
Discussion started by: rogerben
6 Replies

6. Solaris

doubt reg crontab

Hi, I have a doubt reg crontab entries. If the user name is there in /etc/cron.d/cron.allow and also in cron.deny file will he able to execute. if the user is not in both the file means wt will do? (2 Replies)
Discussion started by: rogerben
2 Replies

7. UNIX for Dummies Questions & Answers

Cloning OracleHome (gzip/gunzip Help)

Environment: ServerA - IBM AIX 5.2 ServerB - IBM AIX 5.2 I want to clone one of my oracle installation. The easiest way is to ZIP(possibly use gzip) the installed folder from the ServerA (Here Oracle is installed and working fine) , FTP to the ServerB(Here I want to have the installation... (4 Replies)
Discussion started by: aixhp
4 Replies

8. UNIX for Dummies Questions & Answers

gunzip error - not in gzip format

Hi, I am getting this error gunzip file1.tar.Z gunzip: file1.tar.Z: not in gzip format Any clues? This goes bad only in some recent installations of ids (5 Replies)
Discussion started by: eagercyber
5 Replies

9. Shell Programming and Scripting

Reg: Gzip

Hi , I want gzip a folder te55 which has got 3 files test1.test2,test3 the name of the gzipped folder should be te55.gz with the 3 files as test1,test2,test3 itself... Is it possible... thanks in advance sam (5 Replies)
Discussion started by: sam99
5 Replies

10. HP-UX

decompress in HPUX11 by Gunzip and gzip

Hello evrebody , I have HPUX-11, i try to install "Mozilla" and "unzip utillity" I cannot decompress file (F.tar.gz) or file(F.gz) by commandes: gunzip -dv F.tar.gz | tar -xvf gunzip F.tar.gz or gzip -dv F.tar.gz |tar -xvf gzip F.gz maybe someone know What's the reason? maybe i... (1 Reply)
Discussion started by: yanly64
1 Replies
Login or Register to Ask a Question