unpacking compressed files in .zip .tar and .tar.gz from command line

Unpacking .zip file from command line.

unzip foo.zip

Unpacking .tar file from command line.

tar -xf foo.tar

Unpacking .tar.gz file from command line.

tar -xzf

-x : Extract a tar filename.
-f : Specify the filename.
-z : Decompress the file with .gz created by gzip program and then extract the contents.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search