Monday, 16 December 2013

Comparssion in Red Hat Linux

Hello friends i m Deepak Saini and now i am trying to explain compression in Linux Red Hat

Compression :- Compression is a tool by which we are reduce the size of the files or file .It is used to save the space on hard disk.

Compression is three types  I m not sure in this case ( if you find any other then plz tell me)
1 Gunzip
2  Bunzip
3 xz

So now start how to comperss file in different different  tools

First thing is that we are only compressed only .tar or archive file and Second is that we can not append the files in the compress directory.

We are using the # du -h <direcory or tar file > to see  the size  of files or directory

First we are using the Gunzip for compression

1 we are compress the tar file
  syntax :- gzip <tarfilename>  
in this we are use the tar file name to compress


2 for uncompress we are suin the gunzip
  syntax :- gunzip <compressed file name>


Second We are use the bunzip for compression 
1 we are compress like gunzip in bunzip
  syntax :- bunzip2 <tarfile>

2 For uncompress the compress file

  syntax :-    bunzip2 <compress file name >

 Third and last is xz  for compression
 1 for compression
    synatx :- xz <tar file name>

2 for uncompress compressed file
 syntax :- unxz <compressed file >


thanks for reading and sorry for my R.I.P English  _/\_


 
 




0 comments:

Post a Comment