Created
November 27, 2018 18:49
-
-
Save otkrsk/7aa33f2b07a04f45f65829a9d51c07f8 to your computer and use it in GitHub Desktop.
Command to untar a tar file into another directory and strip it's root directories.
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 -zxvf file.tar.gz -C <target_directory> --strip <number_of_directories_to_strip> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment