Unaswered Questions

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


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?




Leonardo said...

You can use the -C modifier:

tar -C destination_path -xvf yourtarfile.tar

sofeng said...

Thanks a lot!


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


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.