Windows - Gz

gzip filename.txt (If gzip not available, use tar to create .tar.gz directly):

tar -xvzf filename.gz For .tar.gz :