Answers for "difference between .zip and tar.gz"

26

unzip tar.gz

tar -xvf file.tar.gz
Posted by: Guest on March-25-2020
0

how to zip and unzip tar

Compress:
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file

Uncompress:
tar -xzvf archive.tar.gz

Legend:

-c: Create an archive.
-z: Compress the archive with gzip.
-v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
-f: Allows you to specify the filename of the archive.
-x: extract
Posted by: Guest on January-24-2022

Code answers related to "difference between .zip and tar.gz"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language