KALI – How to unzip files on Linux


University of South Wales: Information Security for Privacy

There are so many formats for unzipping, that it’s almost unfair. Here’s a tip – look at the ending of the file.

To unzip files that end with bz2 use

bunzip2 filename.bz2

*****

To unzip files that end with .tar.bz2 use

tar -xvjpf filename.tar.bz2

*******

To unzip files that end  .gz use

gunzip file.gz

or

gzip -d file.gz

*****

http://www.cyberciti.biz/howto/question/general/compress-file-unix-linux-cheat-sheet.php

Syntax Description Example(s)
gzip -d {.gz file}
gunzip {.gz file}
Decompressed a file that is created using gzip command. File is restored to their original form using this command. gzip -d mydata.doc.gz
gunzip mydata.doc.gz
bzip2 -d {.bz2-file}
bunzip2 {.bz2-file}
Decompressed a file that is created using bzip2 command. File is restored to their original form using this command. bzip2 -d mydata.doc.bz2
gunzip mydata.doc.bz2
unzip {.zip file} Extract compressed files in a ZIP archive. unzip file.zip
unzip data.zip resume.doc
tar -zxvf {.tgz-file}
tar -jxvf {.tbz2-file}
Untar or…

View original post 284 more words

Thank for your comments

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s