Monday, March 19, 2012

Rsync command and tar.gz commands


  • If u want to transfer data 1 server to another server give following command

               # rsync –auv source file path or file name                            remotepath(192.168.252.212:/home/amol/Desktop)




·        List the contents of a tar.gz file


             #  tar –tvf  file.tar.gz

·        List the contents of a tar.bz2 file

# tar -jtvf file.tar.bz2


  • How to extract tar.gz file in another directory

         # tar –zxvf  file.tar.gz  -C destination path(/amol)


  • How to create tar.gz file
   #  tar –zcvf  file.tar.gz  your file name like file1

No comments:

Post a Comment