Monday, 2 December 2013

How to perform archiving in Linux Red Hat

Archiving :- In the archiving we are bundle up  many files in a tar  (Tape Archive) file .And all files total size is little reduced.Exart the file which we want to read.But we are not able to over writing in the tar file .


Tar :- Tar is a tool in Linux to archive the files and directories.

So now We start

To archiving many file a time  files  .

Setup 2 :- To create a tar file 1st of all we are create the files or select the files which we are want to archive and make a tar file .
So in my case i create some files ajay,deepak,govind  make a tar file with the tool tar.
 Syntax:- #tar -cvf <filename.tar> <ajay deepak govind>


                  c = create 
                  v = verbosley
                  f = forcefully 

Setup 3 :- How to append a file in the bundle
          Syntax :- #tar -rvf <filename.tar> <filename>

           r = append
           v =  verbosely
           f = forcefull
Setup 4 :- How to see the file in the .tar bundle
                 Sybtax :- # tar -tvf <filenmae.tar>


                 t = table or list of fiel in bundle 
                 v = verbosely
                 f = forcefully
Setup 5 :- How to extract  the full directory
                Syntax :- tar -xvf <filename.tar>

                     x = extract the file 
                     v = verbosley
                     f = forcefully
Setup 6 :- How to extarct one file from the tar file
                Syntax :- # tar -xvf <filename.tar> filename
                  
                    

0 comments:

Post a Comment