Created
April 18, 2015 21:31
-
-
Save anubhavsinha/31e135112d932658dac6 to your computer and use it in GitHub Desktop.
tar to a specific folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tar xf archive.tar -C /target/directory --strip-components=1 | |
#Note that if your tarball already contains a directory name you want to change, adding --strip-components=1 is needed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment