Archive for the ‘Syntax for tar command’ Category

Syntax for tar command

Wednesday, March 18th, 2009

Syntax for tar command.



Syntax for tar.

tar samples

 

Disclaimer: Apply to a TEST environment first. Use on production systems is at DBAs own risk.

 

1)

tar cvf tar_support *2006-07-31_*

  • This will tar all files within the current directory, where their name includes string 2006-07-31_ into a tar file named tar_support

 

2)

tar cvf tar_file25 http

  • This will tar all files in directory http into a file named tar_file25

 

 

3)

tar -xvf hpx32_8174_release_patchset.tar

  • This will extract ( untar ) the content of the tar file hpx32_8174_release_patchset.tar

      into the current directory.

 



Google