Quantcast
Channel: Can I zip an entire folder using gzip? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 8 View Live

Answer by shiramy for Can I zip an entire folder using gzip?

For completeness, if you want to tar the file in the background, use @Shadur's answer and append & in the end: tar -zcvf archive.tar.gz directory/ &

View Article



Answer by ize for Can I zip an entire folder using gzip?

The Answer to the question “Can I zip an entire folder using zip on linux?” is to use the syntax: zip -r <zip file name> <folder to zip>

View Article

Answer by nyxee for Can I zip an entire folder using gzip?

I recommend using pigz(Parallel Implementation of GZip) tar -cvf - dir | pigz -9 > /path/to/dir.tar.gz

View Article

Answer by Jeff for Can I zip an entire folder using gzip?

If your linux tar doesn't support the -z option you can use the following: tar -cvf - dir | gzip > dir.tar.gz

View Article

Answer by lepe for Can I zip an entire folder using gzip?

I scripted these 2 commands: gzipdir: #!/bin/bash if [[ -d $1 ]]; then cd "$1" cd .. base=$(basename "$1") tar -zcvf "$base.tgz" "$base" if [[ $? == 0 && -f "$base.tgz" ]]; then rm -rf "$base"...

View Article


Answer by slm for Can I zip an entire folder using gzip?

The gzip command will not recursively compress a directory into a single zip file, when using the -r switch. Rather it will walk that directory structure and zip each file that it finds into a separate...

View Article

Answer by Shadur for Can I zip an entire folder using gzip?

No. Unlike zip, gzip functions as a compression algorithm only. Because of various reasons some of which hearken back to the era of tape drives, Unix uses a program named tar to archive data, which can...

View Article

Can I zip an entire folder using gzip?

I'm trying to zip a folder in unix. Can that be done using the gzip command?

View Article

Browsing latest articles
Browse All 8 View Live




Latest Images