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

Unpacking .zip file from command line.
[code language=”shell”]
unzip foo.zip
[/code]

Unpacking .tar file from command line.
[code language=”shell”]
tar -xf foo.tar
[/code]

Unpacking .tar.gz file from command line.
[code language=”shell”]
tar -xzf
[/code]

-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