Linux.com: SysAdmin to SysAdmin: Programming with bash

Written By
Web Webster
Web Webster
Jun 24, 2004

“Face it, you can’t become any kind of respectable administrator
without knowing a decent bit about shell scripting. You don’t have
to be the ‘Bashmeister General’ or anything, but having a firm
grasp on the basics will get you out of a lot of jams, and provide
a foundation for furthering your experience and your skill. In this
article we’ll cover some programming functionality of the bash
shell.

“Functions are useful shell programming constructs. In the
shell, functions are, for all intents and purposes, the same as
methods and subroutines. A function is a way to collect a bunch of
bash commands, statements, and expressions into a single box. You
label the box, and then, when you need the functionality contained
in the box, you call it by name. You can have lots of functions in
the same script, as long as you give them each a unique
name…”

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.