Installing vim editor.

To install vim [root@testarossa-00-0c-29-47-8f-35 ~]# yum whatprovides vim-enhanced Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.crazynetwork.it * epel: fr2.rpmfind.net * extras: mirror.crazynetwork.it * updates: mirror.crazynetwork.it 2:vim-enhanced-7.0.109-7.el5.i386 : A version of the VIM editor which includes : recent enhancements. Repo : base Matched from: [root@testarossa-00-0c-29-47-8f-35 ~]# yum install vim-enhanced-7.0.109-7.el5.i386 Loaded plugins: fastestmirror…

VIM cheat sheet

< The list of Vim commands > Working with files Vim command Action :e filename Open a new file. You can use the Tab key for automatic file name completion, just like at the shell command prompt. :w filename Save changes to a file. If you don’t specify a file name, Vim saves as the file name…

List interfaces and IPs neatly

The following command gives a neat list of the Devices and their IPs / details without all the gruesome details. ifconfig | egrep  "Link|inet" A sample result would be: [root@testarossa-00-0c-29-47-8f-35 vm]# ifconfig | egrep "Link|inet" eth0 Link encap:Ethernet HWaddr 00:0C:29:47:8F:2B inet addr:192.168.47.135 Bcast:192.168.47.255 Mask:255.255.255.0 eth1 Link encap:Ethernet HWaddr 00:0C:29:47:8F:35 inet addr:192.168.1.71 Bcast:192.168.1.255 Mask:255.255.255.0 lo Link…

Dsabling SElinux In Centos

Sometimes and with some DB platforms especially when you are testing and want to reduce the number of variables during development, testing etc.. you don not want SELinux watching your back. While it is a must to enable SELinux in hardened production systems it can be quite a pain to handle. Sometimes it needs disabling…