Unaswered Questions



This is my OLD blog. I've copied this post over to my NEW blog at:

http://www.saltycrane.com/blog/2008/01/unaswered-questions/

You should be redirected in 2 seconds.



If you know the answer, please leave a comment.

 

1. How do I unpack a tarball to a specific directory?

I know I can uncompress a tar file in the current working directory with tar –xvf mytarfile.tar. Can I upack it to another directory instead?

 

 

2 comments:

Anonymous said...

You can use the -C modifier:

tar -C destination_path -xvf yourtarfile.tar

sofeng said...

leonardo:
Thanks a lot!

About

This is my *OLD* blog. I've copied all of my posts and comments over to my NEW blog at:

http://www.saltycrane.com/blog/.

Please go there for my updated posts. I will leave this blog up for a short time, but eventually plan to delete it. Thanks for reading.