9951 explained code solutions for 126 technologies


curlDownload and extract gzip file


curl https://examples.onelinerhub.com/file.yml.gz | gzip -d > file.ymlctrl + c
curl

base curl command

/file.yml.gz

gzip file URL

|

pipe downloaded file content directly to the specified command

gzip -d

decompress given gzip archive

>

saves output to the specified file

file.yml

name of the file to write decompressed contents into