Monthly Archive: March, 2012

Use netstat for view routing cache

You know, you can use netstat command to view the routing cache. Can be useful for diagnostic purpose. netstat -rnC Here is the screenshot from my machine.

Check httpd.conf for syntax errors

So you are finished editing your httpd.conf file. Before restarting or reloading your httpd service you might want to check the syntax of the httpd.conf for any errors.  Like we have “named-checkconf” in… Continue reading

View distribution specific information

You can use “lsb_release” command to view the distribution specific information.  Below is a screen from my machine, using lsb_release with different options. Feel free to use man pages of lsb_release.

Extended help for httpd.conf

Always use the extended help for httpd.  httpd -L  It will display all the httpd.conf directives and the places where they are valid. For a specific directive, it tells all the possible values… Continue reading

Use “stat” command to get information about file and filesystem

You know you have a “stat” command, that can be used either to check the status or properties of a single file or a entire filesystem. It displays file or file system status… Continue reading

RHCSA/RHCE exam result of 16/03/2012

Congrats to ALL students.

Result of the RHCE/RHCSA exam on 15/03/2012.

Congrats to all proud Network NUTS students.

Test apache without modifying original httpd.conf

What will you do if you want to try some new directives within the apache? Typically you’ll modify the original httpd.conf to try out different Apache directives. If something doesn’t work out, you… Continue reading

Change DocumentRoot without modifying httpd.conf

You can use a entirely different DocumentRoot for apache without actually modifying “httpd.conf”.  Copy of your original DocumentRoot directory (/var/www/html) to a new temporary DocumentRoot directory (/var/www/alok). Create whatever files you want.  STEP… Continue reading

CD Command Hack for auto-correction.

If you are not good at typing and make lot of mistakes. READ FURTHER. Use “shopt -s cdspell” to correct the typos in the cd command automatically.  Just type –  shopt -s cdspell… Continue reading