How to comment all lines in VI editor ?

This can be done with a using a command like ‘search and replace’1.Open the file in ‘vi’ editor.2.Press Escape and type :1,$s/^/##/g3.Press Enter 1,$s/^/##/g can be broken down as1: To start from 1st line $s :To end at the last line/^ : Search for the start of the line/##:Replace with ##/g: Replace all occurrences

How to Install RedMine on CentOS

Install Redmine on Centos 6.3 1. As a Root Install Following Packages. yum install make gcc gcc-c++ zlib-devel ruby-devel rubygems ruby-libs apr-devel apr-util-devel httpd-devel mysql-devel mysql-server automake autoconf ImageMagick ImageMagick-devel curl-devel 2. gem install bundle 3. Install Redmine    mkdir /var/www/redmine    wget http://rubyforge.org/frs/download.php/76255/redmine-1.4.4.tar.gz    (I am not sure if this method will work for newer version) 4. … Read more