Archive for the Linux Category

Replace A String In The File Using Perl

It is easier to use perl than sed to replace a string using perl.Try this.perl -pi -e ’s/existing_string/new_string/g’ file_name-Vigyan

My unqualified host name - Sendmail is slow

If you are getting this error, most likely it is due to your /etc/hosts entry.

Make sure you have:

127.0.0.1       localhost.localdomain   localhost
127.0.1.1       TESTSRV01.localdomain   TESTSRV01
The TESTSRV01 is my test machine name.

How to install linux-header in Ubuntu

Use:

$ sudo apt-get install linux-headers-$(uname -r)

|