By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,609 Members | 1,142 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,609 IT Pros & Developers. It's quick & easy.

Let me know the meaning of the script

P: 1
Dear all,
Please let me know the meaning of the script.

Expand|Select|Wrap|Line Numbers
  1.         #zcat compressed_tarball.tar.gz | (cd /export/opt; tar xvfp -)
  2.  
Actually I was trying for a script to extract tar file, in to a
particular directory. I got this but I don't understand it.

regards
udaya
Oct 12 '07 #1
Share this Question
Share on Google+
1 Reply

Motoma
Expert 2.5K+
P: 3,237
Dear all,
Please let me know the meaning of the script.

Expand|Select|Wrap|Line Numbers
  1.         #zcat compressed_tarball.tar.gz | (cd /export/opt; tar xvfp -)
  2.  
Actually I was trying for a script to extract tar file, in to a
particular directory. I got this but I don't understand it.

regards
udaya

If you are looking to extract a .tar.gz file to a directory, you can just do this:
Expand|Select|Wrap|Line Numbers
  1. # tar -xzvf tarball.tar.gz -C /path/to/ouput/directory/
  2.  
Oct 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.