9951 explained code solutions for 126 technologies


curlDownload and extract tar.gz file


curl https://examples.onelinerhub.com/file.tar.gz | tar -xzctrl + c
curl

base curl command

/file.tar.gz

tar.gz file URL

|

pipe downloaded file content directly to the specified command

tar

tar.gz archive utility

-xz

will extract given archive (passed from downloaded content)