Skip to content

Instantly share code, notes, and snippets.

@mustafaturan
Created June 28, 2022 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mustafaturan/ec8e6e9310775043916d6115992be203 to your computer and use it in GitHub Desktop.
Save mustafaturan/ec8e6e9310775043916d6115992be203 to your computer and use it in GitHub Desktop.
Untar remote file to local

Untar remote file to local directory

Downloading a tar.gz file and extracting it after the download completes might consume a lot of disk space and time. It is possible to write tar.gz file directly as input to tar command and untar it to directory directly from remote url.

wget -qO- your_link_here | tar -xvz -C /target/directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment