Install Sublime Text 2 on Ubuntu (via Terminal)

Other installations just say that download the Sublime Text 2 and run it, but this installation is like installing usual programs via terminal.

How to Install Sublime Text 2 on Ubuntu:

1) Add sublime-text-2 PPA to your system

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update

2) If there is any Sublime Text 2, uninstall it.

sudo apt-get remove sublime-text*

3) And finally, install the stable version of Sublime Text 2

sudo apt-get install sublime-text