Compressing and Archiving files

* gzip & gunzip ( *.gz )
* bzip2 & bunzip2 ( *.bz2 )
* zip & unzip ( *.zip )

gzip : The compress program


-d    Uncompressing a “gzipped” file  (  gunzip  <==> gzip -d  )
-r    Recursive compression

tar : The archival program

For creating a disk archive that contains a grp of file or an entire dir structure.
tar option

-c       Create an archive
-x       Extract file from archive
-t       Diaplay files in archive
-f arch     Specify the archive arch

Creating an archive ( -c )
$ tar -cvf archive.tar file1 file2      ( c – create, v – diaplay list , f – specify the name )

Extracting an archive ( -x )
$ tar -xvf archive.tar

Viewing the archive ( -t )
$ tar -tvf archive.tar

 zip & unzip : Compressing and archiving together  

$ zip archive.zip file1 file2 file3
$ unzip archive.zip

-r    ecursive compression
-v    viewing the archive

 
 

njoy the simplicity…….
©Victimizeit

Advertisements

About victimizeit
This is Atul.. working for IBM as a DataStage Developer. I may not be an expert on any particular DataStgae technology, but I'm sure I do know a few things about DB2, AIX, Unix, Windows, and DataBase. In this blog, I'll give out some tips on these subjects. If you find them useful, great, I'll be happy. Thanks for stopping by !!

What is your opinion ?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: