Ruby for system administrators | Linux Today

Ruby for system administrators

Written By
Web Webster
Web Webster
Jul 19, 2010

[ Thanks to Linux User &
Developer magazine
for this link. ]

“Most Linux and UNIX system administrators use a
diverse mix of shell scripts and tools like grep, awk, cut and so
on. The classical approach has proven its merits, but these scripts
are generally not easy to read or to maintain. One solution is to
use a real programming language for system administration tasks. In
a complex environment, system administration can become much easier
with a real programming language instead of shell scripts.
Traditionally, Perl has been very popular among sysadmins, but some
people maintain that this is not much better than shell.

“In this article, we choose Ruby, a feature-rich but simple
object-oriented programming language known from the popular web
application framework Ruby on Rails. The Ruby programming language
has many built-in and external libraries that can come in handy for
typical system administration tasks such as file manipulation and
text processing, log file analysis, logging into other servers, and
so on. The gentle learning curve of this programming language,
coupled to the easy-to-read and maintainable form of the scripts,
makes this a valid choice for sysadmins.

“Simple but effective
Let’s start with some basic features of the language, to show you
why Ruby is in many cases a better choice than Perl or a shell
script. First of all, everything in Ruby is an object, even
primitive types such as numbers and strings.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.