Thursday, January 29, 2009

File Compression in Linux

Hi..

These are the daily used simple compression tools in all linux boxes.

****Zip****

Create:
zip -r filename.zip filename(source file/dir)

Extract:
unzip filneame.zip

****Tar****

Create :
tar -cvf filename.tar filename(source file/dir)

Extract:
tar -xvf filename.tar

****Tar.gz****

Create
tar -cvzf filename.tar.gz filname(source file/dir)

Extract
tar -xzvf filename.tar.gz

****Tar.bz2****

Create
tar -cjvf filnema.tar.bz2 filname(source file/dir)

Extract:
tar -xjzf filename.tar.bz2

****GZ****

Create:
gzip filename

Extract:
gunzip filename.gz


****BZIP2****

Create:
bzip2 filname

Extract:
bunzip2 filname.bz2

Enjoy.. :-)

No comments: