vi / vim Shortcuts

Open filevi filenameAs i am newb on linux macine, i dont know vi, i am listing down shortcuts which i am getting familier. :)Insert in fileiExit fileqforced exitq!save filewqforced savewq!Copy no of linesyyPaste copied linesppUndo changesuuDelete linesddTo search and replace string in vi :%s/search_string/replacement_string/gTo find particular word in file?string1If you have any quick list. … Continue reading vi / vim Shortcuts

Ruby 1.8.7 and rails installation on ubuntu interpid

Execute following commands in order to install ruby and rails.sudo apt-get install build-essentialBelow command will install all necessary packages.if you dont want any remove it from command.sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby ruby1.8-dev irb1.8 libdbd-mysql-perl libdbi-perl libmysql-ruby1.8 libmysqlclient15off libnet-daemon-perl libplrpc-perl libreadline-ruby1.8 libruby1.8 mysql-client-5.0 mysql-common mysql-server-5.0 rdoc1.8 ri1.8 ruby1.8 irb libopenssl-ruby libopenssl-ruby1.8 libterm-readkey-perl psmiscGem … Continue reading Ruby 1.8.7 and rails installation on ubuntu interpid