String Substitution in PERL vs SED Removing Disk I/O Factor

May 28, 2007 at 5:59 pm

A lot of systems administrators will use SED for string substitution, when they should try using PERL. When doing string substitutions with SED the string substitutions write to a seperate file, then the file is copied over the target file. This second file that is created utilizes Disk I/O, another issue you can run into are file permissions if your umask doesn’t match the permissions of the target file. With PERL you do not have any of these issues since its effects are directly onto the target file with no usage of secondary files therefore not Disk I/O.
(Read more…)

Comments (2)

Category: Systems 101

Using VI To Edit Two Files In A Split Screen

April 13, 2007 at 7:27 pm

Sometimes you need to edit a new or existing file while looking at a separate file using VI. This can be very useful and a powerful time saver. Fortunately you can do this using some simple commands.
(Read more…)

Comments (2)

Category: Systems 101

Configuring Reverse DNS in BIND 9

April 4, 2007 at 7:09 pm

Reverse DNS is the process of using DNS to translate IP addresses to hostnames. Reverse DNS is the opposite of Forward DNS, which is used to translate hostnames to IP addresses.
(Read more…)

Leave a comment

Category: Systems 101

Basic IPv4 Reference

March 27, 2007 at 12:17 am

For all those who don’t like to remember the details I have included my quick reference to IPv4. Its not full fledged but can offer some pointing in the right direction. IPv4 is the fourth iteration of the Internet Protocol (IP) and is the most widely deployed. If you want some ugly history details you can always refer to IETF RFC (791). Otherwise just know IPv4 is a data oriented protocol to be used on packet switched internetworks such as ethernet.
(Read more…)

Leave a comment

Category: Networking 101