Tag Archives: Linux

How to find strings in files in Linux

Today I needed to search for a specific string in all files inside a SOAP UI project, you just need to execute the following command: grep -rnw “getList” /home/SOAPUI_Proj/ Please notice that the text in italics means that the value is variable. Sources http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string/ http://stackoverflow.com/questions/16956810/finding-all-files-containing-a-text-string-on-linux Advertisements

How to change keyboard layout in CentOS Linux

Today I ran into the problem of installing a virtual machine that has a french keyboard layout.  I have a US keyboard so it’s clear that I needed to change. Here’s how to do it from console. Open the keyboard file for editing vi /etc/sysconfig/keyboard You will see something like this: Change KEYTABLE and LAYOUT […]

How to change IP address on CentOS Linux

A few weeks back I needed to change my IP address on a Linux CentOS installed in a VirtualBox machine. Here is how to do it: ifconfig eth0 192.168.0.34 ifconfig eth0 netmask 255.255.255.0 Sources: http://www.tecmint.com/ifconfig-command-examples/ http://christophermaier.name/blog/2010/09/01/host-only-networking-with-virtualbox