March 2007

Q. I’ve lots of .gz files in my directory and I’d like to search them using grep. Unfortunately, grep is not working on my compressed file How do I write a script to automate entire procedure to grep some compressed files. Do I have to uncompress them first and run grep over them? A. No [...]

{ 0 comments }

Q. I’ve just moved from a Linux server to a new FreeBSD server. I’m confused with FreeBSD ports system. Can you tell me – how do I find a package file (port) and install the same? A. Under Linux you use rpm / up2date / yum or apt-get command to install a package. Under FreeBSD [...]

{ 2 comments }

Q. I’ve been using Linux for a while on my server and have a large collection of text file everywhere. I’m interested in learning about searching a text string. Can you tell me – how do I find a file containing a particular text string in Linux server? A. I have to admit that there [...]

{ 26 comments }

How do I read or display command-line arguments with Perl?

{ 13 comments }

How do I install MySQL database server under Redhat Enterprise Linux 5?

{ 33 comments }

Q. How do I configure CentOS / Redhat Linux computer to share my internet connection? How do I configure RHEL as a software router with two interfaces? How do I share my single connection with other PCs on LAN?

{ 14 comments }

Q. How do I create a new directory and change to same in a single command? For example I need to create a directory called foo and change to same mkdir foo cd foo How do I run both command at a time? There is no such command exists that can create and change directory [...]

{ 4 comments }