Search This Blog

Showing posts with label zip. Show all posts
Showing posts with label zip. Show all posts

Monday, July 4, 2011

.zip, .rar, .tar.gz, .tar.bz2 in Ubuntu (Console)

.zip
   $ unzip .zip
.rar
if it doesn't work it means rar is not installed yet
install rar with following command bellow.
   $ sudo apt-get install unrar
then how to run rar command
   $ unrar .rar
.tar.gz
   $ tar zxvf file_name.tar.gz
to create tar.gz the command is
   $ tar cf .tar.gz file file file …
.tar.bz2
   $ tar jxvf .tar.bz2
to create .tar.bz2 the command is
   $ tar jcvf .tar.bz2 file file file …

Related Posts Plugin for WordPress, Blogger...