Skip to content

Instantly share code, notes, and snippets.

@otkrsk
Created November 27, 2018 18:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save otkrsk/7aa33f2b07a04f45f65829a9d51c07f8 to your computer and use it in GitHub Desktop.
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.
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