Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Thursday, August 11, 2011

How to open or extract rar files in Linux (Ubuntu)

NOTE * You need an active internet connection to install this program.

1. Open a terminal window by going to "Applications->Accessories->Terminal"

2. Type this command on terminal
sudo apt-get install unrar

3. Enter the password for current user and you are done

On terminal screen enter above command


bond@bonds-pc:~$ sudo apt-get install unrar


4. After installation, you can just right click on a .rar file and extract it directly. :) 


I did this on "Ubuntu 10.10 - the Maverick Meerkat". This might work on other Ubuntu versions as well.

Wednesday, October 6, 2010

Split and Combine .ISO file in Ubuntu

Here are some linux commands that can be used to split and combine .ISO file.

Goto the directory in which .iso file is located
bond@bonds-desktop:~$ cd Downloads

to split file "myFile.iso" in parts of size 3gb
bond@bonds-desktop:~/Downloads$ tar cvzf - myFile.iso | split -d -b 3000m - myFile.iso.tar.gz.

output shown- myFile.iso

This creates parts as follows in the same folder
myFile.iso.tar.gz.00
myFile.iso.tar.gz.01

Now to combine parts
bond@bonds-desktop:~/Downloads$ cat myFile.iso.tar.gz.* | tar xvzf -

output shown- myFile.iso

and file is recreated

commands used are (you can split size to any size you want , here 100m)
tar cvzf - filename.iso | split -d -b 100m - filename.iso.tar.gz.
cat myFile.iso.tar.gz.* | tar xvzf -