SaltyCrane Blog — Notes on JavaScript and web development

Unaswered Questions

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?

 

 

Comments


#1 Leonardo commented on :

You can use the -C modifier:

tar -C destination_path -xvf yourtarfile.tar


#2 sofeng commented on :

leonardo:
Thanks a lot!